Skip to content

Instantly share code, notes, and snippets.

Created October 26, 2013 07:11
Show Gist options
  • Save anonymous/7166257 to your computer and use it in GitHub Desktop.
Save anonymous/7166257 to your computer and use it in GitHub Desktop.
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title 5 layer binary comparison test
author Dennis Au
(realtime_interval 0.1)
debug
========
OBJECTS
========
Background .
Black
Border #
Black
Wall w
Grey
LapLine |
White
..0..
.....
..0..
.....
..0..
BECount B
Green Grey
11011
10111
01111
10111
11011
Player P
Red
BE10000
White
0....
0....
0....
0....
0....
BE1000
White
.0...
.0...
.0...
.0...
.0...
BE100
White
..0..
..0..
..0..
..0..
..0..
BE10
White
...0.
...0.
...0.
...0.
...0.
BE1
White
....0
....0
....0
....0
....0
Comp C
White
..0..
...0.
..0..
.....
..00.
=======
LEGEND
=======
Integer = BE1 or BE10 or BE100 or BE1000 or BE10000
LT10000 = BE1 or BE10 or BE100 or BE1000
LT1000 = BE1 or BE10 or BE100
LT100 = BE1 or BE10
LT10 = BE1
GT1000 = BE10000
GT100 = BE10000 or BE1000
GT10 = BE10000 or BE1000 or BE100
GT1 = BE10000 or BE1000 or BE100 or BE10
1 = BE1
2 = BE1000
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
BE1, Lapline
BE10, Player, BECount, Border, Wall, Comp
BE100
BE1000
BE10000
======
RULES
======
[action player][comp] -> [player][action comp]
left [< Player LapLine][Comp] -> [< Player LapLine][Action Comp]
(Comparison - count less than target)
right [action Comp|...| Integer] -> [action Comp|...| ^ Integer]
right [^ Integer|...|^ Integer] -> [^ Integer|...|Integer]
startloop
down [< BE10000 | No BE10000] -> win
down [< LT10000 | BE10000] -> [LT10000 | BE10000]
down [< BE10000 LT10000| BE10000] -> [< BE10000 < LT10000| BE10000]
down [< BE1000| No BE1000] -> win
down [< LT1000| BE1000] -> [LT1000| BE1000]
down [< BE1000 LT1000| BE1000] -> [< BE1000 < LT1000| BE1000]
down [< BE100| No BE100] -> win
down [< LT100| BE100] -> [LT100| BE100]
down [< BE100 LT100| BE100] -> [< BE100 < LT100| BE100]
down [< BE10| No BE10] -> win
down [< LT10| BE10] -> [LT10| BE10]
down [< BE10 LT10| BE10] -> [< BE10 < LT10| BE10]
down [< BE1| No BE1] -> win
right [^ Integer| No Integer] -> [Integer|]
right [^ Integer| Integer] -> [Integer| ^ Integer]
endloop
(Counting)
left [BECount] -> [< BECount]
left [< BECount| No BE1] -> [BECount| BE1]
left [< BECount| BE1] -> [BECount | < BE1]
startloop
left [< BE1 No BE10] -> [BE10]
left [< BE1 BE10] -> [< BE10]
left [< BE10 No BE100] -> [BE100]
left [< BE10 BE100] -> [< BE100]
left [< BE100 No BE1000] -> [BE1000]
left [< BE100 BE1000] -> [< BE1000]
left [< BE1000 No BE10000] -> [BE10000]
left [< BE1000 BE10000] -> [< BE10000]
left [< BE10000| No BE1] -> [| BE1]
left [< BE10000| BE1] -> [| < BE1]
left [< BE10000] -> []
endloop
(reset count)
left [< Player LapLine][BECount|...|Integer] -> [< Player LapLine][BECount|...|Down Integer]
left [> Player| LapLine] -> [Player| LapLine]
down [> Integer][Integer] -> [> Integer][> Integer]
right [Comp|...|v Integer] -> [Comp|...|Integer]
down [> Integer| Border] -> [|Border]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
C12w.|.
...B.|P
...w.w.
...w...
...w...
###w...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment