title _
author Sky Chan
homepage

run_rules_on_level_start
norepeat_action
noaction



enable_level_select


again_interval 0.1


========
OBJECTS
========

Background
darkblue

Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010

Player
darkbrown lightbrown red 
..1..
.222.
12221
10001
.0.0.

Heart
red red
.1.0.
11100
11100
.100.
..0..

Blue
blue blue
.1.0.
11100
11100
.100.
..0..

Plus
blue
00000
00.00
0...0
00.00
00000

Minus
orange
00000
00000
0...0
00000
00000

ManyHearts
transparent

ManyMinds
transparent

Victory
transparent

One
transparent

PLetter
black white
11111
10001
11111
10000
10000

rLetter
black white
00000
00111
01000
01000
01000

eLetter
black white
00110
01001
01110
01000
00110

sLetter
black white
00111
01000
00110
00001
01110


xLetter
black white
00000
01001
00110
00110
01001

tLetter
black white
01000
11100
01000
01001
00110

oLetter
black white
00000
00110
01001
01001
00110

gLetter
black white
00110
01001
00111
00001
00110

iLetter
black white
00010
00000
00110
00010
00111

vLetter
black white
00000
01001
01010
01100
01000

uLetter
black white
00000
01001
01001
01001
01110

p2Letter
black white
00000
00110
01001
01110
01000

spaceLetter
black

HeartAnimation1
red red
.1.0.
11100
11100
.100.
..0..

HeartAnimation2
red red
.....
.1.0.
.110.
..0..
.....

HeartAnimation3
red red
.....
..0..
.110.
..0..
.....

HeartAnimation4
white red
.....
..0..
.0.0.
..0..
.....

HeartAnimation5
white
..0..
.....
0...0
.....
..0..

HeartAnimation6
white
.....
..0..
.0.0.
..0..
.....

HeartAnimation7
white
..0..
.....
0...0
.....
..0..

PlayerAnimation
darkbrown lightbrown red 
..1..
.222.
12221
10001
.0.0.

Golden
yellow yellow
.1.0.
11100
11100
.100.
..0..

HeartAnimation
transparent

Marker
transparent

HeartMoveMarker
transparent

=======
LEGEND
=======

. = Background
# = Wall
P = Player

+ = Plus
- = Minus

e = Heart

b = Blue

Things = Heart or Blue or Plus

0 = spaceLetter
1 = PLetter
2 = rLetter
3 = eLetter
4 = sLetter
5 = xLetter
6 = tLetter
7 = oLetter
8 = gLetter
9 = iLetter
x = vLetter
y = uLetter
z = p2Letter

Letter = spaceLetter or PLetter or rLetter or eLetter or sLetter or xLetter or tLetter or oLetter or gLetter or iLetter or vLetter or uLetter or p2Letter

HeartAnimations = HeartAnimation1 or HeartAnimation2 or HeartAnimation3 or HeartAnimation4 or HeartAnimation5 or HeartAnimation6 or HeartAnimation7

@ = HeartMoveMarker

g = Golden

=======
SOUNDS
=======

Things move 36772507
Minus move 36772507
sfx0 83744503
startgame 92244503

sfx1 22357503

================
COLLISIONLAYERS
================

Background
Minus, Golden
Player, Wall, Heart, Blue, Plus, 
ManyHearts, ManyMinds, Victory
One
spaceLetter, PLetter, rLetter, eLetter, sLetter, xLetter, tLetter, oLetter, gLetter, iLetter, vLetter, uLetter, p2Letter
HeartAnimation1, HeartAnimation2, HeartAnimation3, HeartAnimation4, HeartAnimation5, HeartAnimation6, HeartAnimation7, PlayerAnimation, HeartAnimation
Marker
HeartMoveMarker

======
RULES
======

late [ Victory ] -> [ ]
late [ One ] -> [ ]
late [ ManyHearts ] -> [ ]
late [ ManyMinds ] -> [ ]


[ HeartMoveMarker ] [ > Player ] [ Heart ] -> [ HeartMoveMarker ] [ > Player ] [ < Heart ]

random late [ Heart ] -> [ One Heart ]
late [ no One Heart ] -> [ Heart ManyHearts ]

random late [ Player ] -> [ One Player ]
late [ no One Player ] -> [ Player ManyMinds ]

late [ Things | Plus ] -> [ Things | Things ]
late [ Minus | Plus ] -> [ Minus | Minus ]
late [ Things Minus ] -> [ ]

late [ Blue | Heart ] -> [ Blue | Blue ]

startloop

[ > Player | Things ] -> [ > Player | > Things ]
+ [ > Player | Minus ] -> [ > Player | > Minus ]
+ [ > Minus | Minus ] -> [ > Minus | > Minus ]
+ [ > Things | Things ] -> [ > Things | > Things ]
+ rigid [ moving Blue | Blue ] -> [ moving Blue | moving Blue ]

endloop


late [ PlayerAnimation ] -> [ ](
late [ HeartAnimations ] -> [ ])
late [ Marker ] -> [ ]

late [ Player | Heart ] -> [ Player | Heart Victory Marker ]

late [ Victory ] [ Heart Marker ] [ Heart no Marker ] -> [ ] [ Heart Marker ] [ Heart ]

late [ Victory ] [ Heart | Player | Heart ] -> [ ] [ Heart | Player | Heart ]

late [ ManyHearts ] [ Victory ] -> [ ManyHearts ] [ ] 

late [ Victory ] [ Background ] -> [ Victory ] [ Background spaceLetter ]
late [ Minus ] [ spaceLetter ] -> [ Minus ] [ ]
late [ Plus ] [ spaceLetter ] -> [ Plus ] [ ]
late [ ManyHearts ] [ spaceLetter ] -> [ ManyHearts ] [ ]

late [ Victory ] [ Player ] -> [ Victory ] [ Player PlayerAnimation ]

late [ Victory ] [ Heart no ManyHearts no HeartAnimations ] -> [ Victory ] [ Heart HeartAnimation1 ]
late [ Minus ] [ HeartAnimations ] -> [ Minus ] [ ]
late [ Plus ] [ HeartAnimations ] -> [ Plus ] [ ]
late [ ManyHearts ] [ HeartAnimations ] -> [ ManyHearts ] [ ]
late [ HeartAnimations ] [ ManyHearts ] -> [ ] [ ManyHearts ]

late [ HeartAnimation6 ] -> [ HeartAnimation7 ] again
late [ HeartAnimation5 ] -> [ HeartAnimation6 ] again
late [ HeartAnimation4 ] -> [ HeartAnimation5 ] again 
late [ HeartAnimation3 ] -> [ HeartAnimation4 ] again
late [ HeartAnimation2 ] -> [ HeartAnimation3 ] again sfx0
late [ HeartAnimation1 ] -> [ HeartAnimation2 ] again

(
[ > Player | Letter ]  -> cancel)

[ > Minus | Wall ] -> cancel
[ > Minus | Letter ] -> cancel

[ action Player ] [ xLetter ] -> win

late [ Player Golden ] -> win sfx1

==============
WINCONDITIONS
==============

all spaceLetter on Background

some Victory
no ManyHearts
no ManyMinds

all Heart on HeartAnimation7
all HeartAnimation7 on Heart

no Minus
no Plus

=======
LEVELS
=======

.p.........e.

#########
#.......#
#.e...-.#
#.......#
#.p...e.#
#.......#
#########

#########
#...#...#
#.e.#.-.#
#...p+..#
#.e.#.-.#
#...#...#
#########

#########
#.......#
#.+.-.e.#
#.+...e.#
#.+...e.#
#.+.p.e.#
#.......#
#########

#########
#.......#
#.b...e.#
#.......#
#.p...e.#
#.......#
#########

........
.bbbbbb.
.b....b.
.bb.e.b.
.b....b.
.b.bbbb.
.b....b.
.bbbb.b.
.b....b.
.b.bbbb.
.b...pb.
.bbbbbb.
........

#######
#+...+#
#..e..#
#.e-e.#
#..e..#
#p....#
#######

#########
#ep.....#
#...b...#
#...b.ee#
#...b...#
#...b...#
#ee.b..e#
#########

#######
#e..b.#
#...b.#
#+++.p#
##....#
.######

.########
.#......#
##..e...#
#bbb.e..#
##..b...#
.#e.b.p.#
.###b####
...###...

.........
.......e.
.........
.........
.........
.........
.p.......
@........

....+....
.p..+....
....+....
.........
.........
....-....
....-..e.
@...-....

.......
.b...b.
..p....
...b...
....e..
.b.....
@......

.........
.........
....g....
.........
.........
.........
....p....
.........
