Skip to content

Instantly share code, notes, and snippets.

@JackLance
Last active May 11, 2018 05:12
Show Gist options
  • Save JackLance/9ebe1e5ad44ac22259343de170a3b337 to your computer and use it in GitHub Desktop.
Save JackLance/9ebe1e5ad44ac22259343de170a3b337 to your computer and use it in GitHub Desktop.
title Coin Counter
verbose_logging
run_rules_on_level_start
========
OBJECTS
========
Background
lightblue
wall
darkbrown
t
transparent
tl
transparent
tr
transparent
m
transparent
bl
transparent
br
transparent
b
transparent
corner
transparent
on
blue
off
darkbrown
one 1
transparent
two 2
transparent
three 3
transparent
four 4
transparent
five 5
transparent
six 6
transparent
seven 7
transparent
eight 8
transparent
nine 9
transparent
zero 0
transparent
player
green
coin
#ff0
.....
.000.
.0.0.
.000.
.....
ending
transparent
tens
transparent
carry
transparent
fiver
#ff0
..0..
.000.
00.00
.000.
..0..
star
#ff0 yellow orange
0.0.0
.121.
02.20
.121.
0.0.0
hund
transparent
won
transparent
last
transparent
fakecoin
#ff0
.....
.000.
.0.0.
.000.
.....
=======
LEGEND
=======
c = corner
l = tl
r = tr
w = bl
e = br
seg = t or l or r or m or w or e or b
num = zero or one or two or three or four or five or six or seven or eight or nine
p = player
k = coin
. = background
x = wall
! = t and coin
@ = l and coin
# = r and coin
$ = m and coin
% = w and coin
^ = e and coin
& = b and coin
* = c and coin
{ = t and fiver
} = l and fiver
; = r and fiver
: = m and fiver
' = w and fiver
" = e and fiver
, = b and fiver
/ = c and fiver
f = fiver
? = tens and wall
- = fakecoin
j = star
` = hund
z = ending
~ = last
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
seg
corner
num
on
off
coin, fiver
star
player, wall
ending
tens
carry
won
hund
last
fakecoin
======
RULES
======
[last][ action player ]-> win
[last ][moving player] -> win
up [tens|no tens] -> [tens | tens]
down [tens|no tens] -> [tens | tens]
[> player | off] -> [stationary player | off]
late [player off] -> [off]
late [player coin] -> again
late [player fiver] -> again
late [player star] -> again
[player coin][zero no tens] -> [player][one]
[player coin][one no tens] -> [player][two]
[player coin][two no tens] -> [player][three]
[player coin][three no tens] -> [player][four]
[player coin][four no tens] -> [player][five]
[player coin][five no tens] -> [player][six]
[player coin][six no tens] -> [player][seven]
[player coin][seven no tens] -> [player][eight]
[player coin][eight no tens] -> [player][nine]
[player coin][nine no tens] -> [player][zero carry]
[player fiver][zero no tens] -> [player][five]
[player fiver][one no tens] -> [player][six]
[player fiver][two no tens] -> [player][seven]
[player fiver][three no tens] -> [player][eight]
[player fiver][four no tens] -> [player][nine]
[player fiver][five no tens] -> [player][zero carry]
[player fiver][six no tens] -> [player][one carry]
[player fiver][seven no tens] -> [player][two carry]
[player fiver][eight no tens] -> [player][three carry]
[player fiver][nine no tens] -> [player][four carry]
[carry no tens][zero tens] -> [][one tens]
[carry no tens ][one tens] -> [][two tens]
[carry no tens ][two tens] -> [][three tens]
[carry no tens ][three tens] -> [][four tens]
[carry no tens ][four tens] -> [][five tens]
[carry no tens ][five tens] -> [][six tens]
[carry no tens ][six tens] -> [][seven tens]
[carry no tens ][seven tens] -> [][eight tens]
[carry no tens ][eight tens] -> [][nine tens]
[carry no tens ][nine tens] -> [][zero tens carry]
[hund] -> [hund off]
[tens carry][hund off] -> [tens carry][hund on]
[player won] -> win
[star player][tens carry] -> [player won][tens no carry] again
[carry no tens] -> []
[seg no on] -> [seg on]
[seg off] -> [seg]
[m no tens][zero no tens] -> [m off][zero]
[l no tens][one no tens] -> [l off][one]
[w no tens][one no tens] -> [w off][one]
[m no tens][one no tens] -> [m off][one]
[t no tens][one no tens] -> [t off][one]
[b no tens][one no tens] -> [b off][one]
[l no tens][two no tens] -> [l off][two]
[e no tens][two no tens] -> [e off][two]
[l no tens][three no tens] -> [l off][three]
[w no tens][three no tens] -> [w off][three]
[b no tens][four no tens] -> [b off][four]
[w no tens][four no tens] -> [w off][four]
[t no tens][four no tens] -> [t off][four]
[r no tens][five no tens] -> [r off][five]
[w no tens][five no tens] -> [w off][five]
[r no tens][six no tens] -> [r off][six]
[l no tens][seven no tens] -> [l off][seven]
[w no tens][seven no tens] -> [w off][seven]
[m no tens][seven no tens] -> [m off][seven]
[b no tens][seven no tens] -> [b off][seven]
[w no tens][nine no tens] -> [w off][nine]
[seg tens][zero tens] -> [seg off tens][zero tens]
[l tens][one tens] -> [l off tens][one tens]
[w tens][one tens] -> [w off tens][one tens]
[m tens][one tens] -> [m off tens][one tens]
[t tens][one tens] -> [t off tens][one tens]
[b tens][one tens] -> [b off tens][one tens]
[l tens][two tens] -> [l off tens][two tens]
[e tens][two tens] -> [e off tens][two tens]
[l tens][three tens] -> [l off tens][three tens]
[w tens][three tens] -> [w off tens][three tens]
[b tens][four tens] -> [b off tens][four tens]
[w tens][four tens] -> [w off tens][four tens]
[t tens][four tens] -> [t off tens][four tens]
[r tens][five tens] -> [r off tens][five tens]
[w tens][five tens] -> [w off tens][five tens]
[r tens][six tens] -> [r off tens][six tens]
[l tens][seven tens] -> [l off tens][seven tens]
[w tens][seven tens] -> [w off tens][seven tens]
[m tens][seven tens] -> [m off tens][seven tens]
[b tens][seven tens] -> [b off tens][seven tens]
[w tens][nine tens] -> [w off tens][nine tens]
[hund on][seg off] -> [hund on][seg on]
[hund on][m on] -> [hund on][m off]
[on off] -> [off]
[corner no off] -> [corner off]
[corner on] -> [corner]
[corner off|seg on] -> [corner on| seg on]
==============
WINCONDITIONS
==============
no coin
no fiver
all ending on player
=======
LEVELS
=======
x-xxxxxxxxx
xxxctcxctcx
xxxlxrxlxrx
xxxcmcxcmcx
xxxwxexwxex
xxxcbcxcbcx
xjx???xxxxx
xxxxxxxxxxx
xp0k0.k..kz
xxxxxxxxxxx
xxxxxxxxxxxxxxx
xxxxxxxctc....z
xxxxxxxlxrxxxxx
xxxxxxxcmcxxxxx
xxxxxxxwxexxxxx
p.3k.k.cbcxxxxx
xxxxxxxxxxxxxxx
xxxxxxzx
x?xxxx.x
x......x
x.xxxxxx
xckctckx
xrxlxrxx
xcxc$cxx
xexwxexx
xckcbckx
xxxxxx.x
p05....x
xxxxxxxx
x?x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x
xxxcbc.cbc.xxxx..xxxxx..xxxxlxrx.x
xxx???xxxxzxxx.xxxxxxxxx.xxxcmcx.x
xxx???xxxx.xxx.xx.xxx.xx.xxxwxex.x
x..........xx.xxx.xxx.xxx.xxcbc..x
x.xxx?xctc.xx.xxx.x.x.xxx.xxxxxx.x
x.x?x?xlxr.xx.xxxxx~xxxxx.xxxxxxzx
x.xxx?xcmc.xx.xx..xxx..xx.xxxxxx.x
x.x?x?xwxe.xx.xx.......xx.x......x
x.xxx?xcbc.xx..xx.....xx.xx.xxxxxx
x..........xxx.xxx...xxx.xxx.ctc.x
xzx???xxxxxxxxx..xxxxx..xxxxxlxrxx
x.x???xxxxxxxxxxx.....xxxxxxxcmcxx
xxxctcxctcxxxxxxxxxxxxxxxxxxxwxexx
xxxl?rxlxrxxxxxxxxxxxxxxxxxx.cbc.x
xxxcmcxcmcxxxxxxxxxxxxxxxxxxxxxx.x
xxxw?exwxexxxxxxxxctc....z.......x
xxxcbcxcbcxxxxxxxxlxrxxxxxxxxxxxxx
xpx???xxxxxxxxxxxxcmcxxxxxxxxxxxxx
xxx???xxxxxxxxxxxxwxexxxxxxxxxxxxx
0...0.....z.......cbcxxxxxxxxxxxxx
xxx???xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment