mirror of
https://gitea.heck.live/heck/Orca-Workshop.git
synced 2024-11-21 15:29:14 +01:00
Add Tutorial: 'Scopehero'
This commit is contained in:
parent
bc79ddf19d
commit
e54bc60495
6 changed files with 334 additions and 0 deletions
25
tutorials/scopehero/1_arithmetic.orca
Normal file
25
tutorials/scopehero/1_arithmetic.orca
Normal file
|
@ -0,0 +1,25 @@
|
|||
.........................................................................................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
............##...#####..#.#####.#....#.#....#.######.#....#.#####.#..#####...............
|
||||
...........#..#..#....#.#...#...#....#.##..##.#......##...#...#...#.#....#...............
|
||||
..........##...#.#....#.#...#...######.#.##.#.#####..#.#..#...#...#.#....................
|
||||
..........######.#####..#...#...#....#.#....#.#......#..#.#...#...#.#....................
|
||||
..........#....#.#...#..#...#...#....#.#....#.#......#...##...#...#.#....#...............
|
||||
..........#....#.#....#.#...#...#....#.#....#.######.#....#...#...#..####................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
....#.increment.#....#.count.#..#.random.#...#.add.#...#.subtract.#..#.multiply.#........
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
..........I..............C...........R.........2A3.........2B3...........2M3.............
|
||||
..........g..............1...........s..........5...........1.............6..............
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
||||
.........................................................................................
|
33
tutorials/scopehero/2_variables.orca
Normal file
33
tutorials/scopehero/2_variables.orca
Normal file
|
@ -0,0 +1,33 @@
|
|||
.................................................................
|
||||
..#....#...##...#####..#...##...#####..#......######..####.......
|
||||
..#....#..#..#..#....#.#..#..#..#....#.#......#......#...........
|
||||
..#....#.#....#.#....#.#.#....#.#####..#......#####...####.......
|
||||
..#....#.######.#####..#.######.#....#.#......#...........##.....
|
||||
...#..#..#....#.#...#..#.#....#.#....#.#......#......#....##.....
|
||||
....##...#....#.#....#.#.#....#.#####..######.######..####.......
|
||||
.................................................................
|
||||
.................................................................
|
||||
..................#.Write.a.variable.#...........................
|
||||
.................................................................
|
||||
............................2C.........R8........................
|
||||
................aV2........bV1.......cV7.........................
|
||||
.................................................................
|
||||
.................................................................
|
||||
.................................................................
|
||||
..................#.Read.a.variable.#............................
|
||||
.................................................................
|
||||
.................Va.........Vb........Vc.........................
|
||||
.................2..........1.........7..........................
|
||||
.................................................................
|
||||
.................................................................
|
||||
.................................................................
|
||||
..................#.Read.mutliple.vars.#.........................
|
||||
.................................................................
|
||||
.................................................................
|
||||
..........................3Kabc......#.reads.a.b.and.c.#.........
|
||||
............................217..................................
|
||||
.................................................................
|
||||
.................................................................
|
||||
.................................................................
|
||||
.................................................................
|
||||
.................................................................
|
41
tutorials/scopehero/3_writer.orca
Normal file
41
tutorials/scopehero/3_writer.orca
Normal file
|
@ -0,0 +1,41 @@
|
|||
.................................................
|
||||
.................................................
|
||||
...#.....#.######..###.#######.#######.#######...
|
||||
...#..#..#.#.....#..#.....#....#.......#.....#...
|
||||
...#..#..#.#.....#..#.....#....#.......#.....#...
|
||||
...#..#..#.######...#.....#....#####...######....
|
||||
...#..#..#.#...#....#.....#....#.......#...#.....
|
||||
...#..#..#.#....#...#.....#....#.......#....#....
|
||||
....##.##..#.....#.###....#....######..#.....#...
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
....#.X.writes.the.right.operand.to.x.and.y.#....
|
||||
.................................................
|
||||
....#.xy.................#.......................
|
||||
....#....data.but.only.1.#.......................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
......11X0.......................................
|
||||
.................................................
|
||||
.........0.......................................
|
||||
.................................................
|
||||
.................................................
|
||||
.################################################
|
||||
.................................................
|
||||
..........................D1.....................
|
||||
..........................*......................
|
||||
..........................iz..#.just.increment.#.
|
||||
..........#.var.a.#.....aVs...#.to.z.#...........
|
||||
.................................................
|
||||
.................................................
|
||||
.......Cz.Va.....................................
|
||||
.......n.Xs......................................
|
||||
.........56789abcdefghijklmnopqrstuvwxy01234.....
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
65
tutorials/scopehero/4_flying_operators.orca
Normal file
65
tutorials/scopehero/4_flying_operators.orca
Normal file
|
@ -0,0 +1,65 @@
|
|||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
...######.#......#...#.#.#....#..####....#######.######..#######.######.....#....#######.#######.######...#####..........
|
||||
...#......#.......#.#..#.##...#.#....#...#.....#.#.....#.#.......#.....#...#.#......#....#.....#.#.....#.#.....#.........
|
||||
...#####..#........#...#.#.#..#.#........#.....#.#.....#.#.......#.....#..#...#.....#....#.....#.#.....#.#...............
|
||||
...#......#........#...#.#..#.#.#..###...#.....#.######..#####...######..#.....#....#....#.....#.######...#####..........
|
||||
...#......#........#...#.#...##.#....#...#.....#.#.......#.......#...#...#######....#....#.....#.#...#.........#.........
|
||||
...#......#####....#...#.#....#..####....#.....#.#.......#.......#....#..#.....#....#....#.....#.#....#..#.....#.........
|
||||
.........................................#######.#.......#######.#.....#.#.....#....#....#######.#.....#..#####..........
|
||||
.........................................................................................................................
|
||||
.....................................#.There.are.4.flying.operators.#....................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
..............................................#.type.them.in.the.box.#...................................................
|
||||
..............................................000000000000000000000000...................................................
|
||||
..............................................0......................0...................................................
|
||||
..............................................0......................0...................................................
|
||||
.................................#.E.east..#..0......................0...................................................
|
||||
.................................#.W.west..#..0......................0...................................................
|
||||
.................................#.N.nord..#..0......................0...................................................
|
||||
.................................#.S.south.#..0......................0...................................................
|
||||
..............................................0......................0...................................................
|
||||
..............................................0......................0...................................................
|
||||
..............................................0......................0...................................................
|
||||
..............................................000000000000000000000000...................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
..###############################################################################################################........
|
||||
.........................................................................................................................
|
||||
..#.now.try.the.writer.with.the.E.operator.#.............................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
...11XE..................................................................................................................
|
||||
.........................................................................................................................
|
||||
......E..................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
..###############################################################################################################........
|
||||
.........................................................................................................................
|
||||
..#.visualize.a.counter.by.using.it.on.the.y.param.of.the.writer.#.......................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
#.C8.....................................................................................................................
|
||||
..4XE....................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
...E.....................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
||||
.........................................................................................................................
|
81
tutorials/scopehero/5_scope.orca
Normal file
81
tutorials/scopehero/5_scope.orca
Normal file
|
@ -0,0 +1,81 @@
|
|||
.................................................
|
||||
.................................................
|
||||
.....#####...#####..#######.######..#######......
|
||||
....#.....#.#.....#.#.....#.#.....#.##...........
|
||||
....#.......#.......#.....#.#.....#.##...........
|
||||
.....#####..#.......#.....#.######..####.........
|
||||
.........##.#.......#.....#.#.......##...........
|
||||
....#....##.#.....#.#.....#.#.......##...........
|
||||
.....#####...#####..#######.#.......########.....
|
||||
.................................................
|
||||
....#.use.the.writer.to.visualize.and.debug.#....
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
..........................D1.....................
|
||||
..........................*......................
|
||||
.........................1iz.....................
|
||||
..........#.var.a.#.....aVf......................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.......Cz.Va.....................................
|
||||
.......w.Xf......................................
|
||||
..Va.....ijklmnopqrstuvwxy0123456789abcdefgh.....
|
||||
..fXE............................................
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.##.........................................##...
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
||||
.................................................
|
89
tutorials/scopehero/6_scopehero.orca
Normal file
89
tutorials/scopehero/6_scopehero.orca
Normal file
|
@ -0,0 +1,89 @@
|
|||
................................#####...#####..#######.######..#######.#.....#.#######.######..#######...................................
|
||||
...............................#.....#.#.....#.#.....#.#.....#.#.......#.....#.#.......#.....#.#.....#...................................
|
||||
...............................#.......#.......#.....#.#.....#.#.......#.....#.#.......#.....#.#.....#...................................
|
||||
................................#####..#.......#.....#.######..#####...#######.####....######..#.....#...................................
|
||||
....................................##.#.......#.....#.#.......#.......#.....#.#.......#...#...#.....#...................................
|
||||
...............................#....##.#.....#.#.....#.#.......#.......#.....#.#.......#....#..#.....#...................................
|
||||
................................#####...#####..#######.#.......#######.#.....#.######..#.....#.#######...................................
|
||||
.........................................................................................................................................
|
||||
...................................................D1...........................D1.......................................................
|
||||
...................................................*............................*........................................................
|
||||
..................................................1iz.......#.increment.#.......i8.......................................................
|
||||
.................................................hB4.........#.bounce.#.........4B4......................................................
|
||||
...................................#.var.a.#....aVd............................bV0....#.var.b.#..........................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
...........................................................#.add.a.and.b.#...............................................................
|
||||
.........................................................................................................................................
|
||||
................................................................Va..Vb...................................................................
|
||||
................................................................dYdA0....................................................................
|
||||
.................................................................cVd.....................................................................
|
||||
...............................................................#.var.c#..................................................................
|
||||
.......Cz.Va.........................................Cz.Vb.........................................Cz.Vc.................................
|
||||
.......m.Xd..........................................m.X0..........................................m.Xd..................................
|
||||
..Va.....0123456789abcdefghhgfedcba987654321....Vb.....23432101234321012343210210123432101....Vc.....24666668aceeeeegikljhfdecaaaaa86422.
|
||||
..dXE...........................................0XE...........................................dXE........................................
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.##.........................................##.##.........................................##.##.........................................#
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
||||
.........................................................................................................................................
|
Loading…
Reference in a new issue