Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2014 01:10
Show Gist options
  • Save anonymous/9027726 to your computer and use it in GitHub Desktop.
Save anonymous/9027726 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 Happy Birthday Hennell: Sokoban Edition 2014
author Alan Hazelden
homepage www.draknek.org
run_rules_on_level_start
again_interval 0.5
========
OBJECTS
========
Background
BLACK BLACK
11111
01111
11101
11111
10111
Wall
DarkGrey DarkGrey
00010
11111
01000
11111
00010
Player
#ef9048 #f3c5ae Blue DarkBrown
.000.
.111.
22222
.333.
.3.3.
TL
White #f3c5ae #ef9048 #04bae1
..000
.0022
00211
00131
00111
TR
White #f3c5ae #ef9048 #04bae1
000..
2200.
11200
13100
11100
BL
White #f3c5ae #9f8172 #a46422 #efe8b7
00121
00112
30011
43000
34333
BR
White #f3c5ae #9f8172 #a46422 #efe8b7
12100
21100
11003
00034
33343
BelowT
#a46422 #efe8b7
00000
11111
00000
.....
.....
BelowBL
#a46422 #efe8b7
.0111
..000
.....
.....
.....
BelowBR
#a46422 #efe8b7
1110.
000..
.....
.....
.....
BelowWall
Grey LightGrey
00000
00000
00000
.....
.....
Flag
White
.....
.....
.....
.....
.....
=======
LEGEND
=======
. = Background
# = Wall
P = Player
Cake = TL or TR or BL or BR
Perspective = BelowT or BelowBL or BelowBR or BelowWall
Solid = Wall or Cake
Q = TL
W = TR
A = BL
S = BR
=======
SOUNDS
=======
sfx1 6045907 (cakes sticking)
sfx2 27189102 (can't move)
sfx3 27189102 (can't push)
sfx4 33258308 (prelude to completion)
Cake MOVE 48059907
Player MOVE 11429307
EndLevel 85763108
Restart 65287309
Undo 84906107
================
COLLISIONLAYERS
================
Background
Flag
Perspective
Player, Wall, Cake
======
RULES
======
[ TL Flag ] [ TR Flag ] [ BL Flag ] [ BR Flag ] -> win
[ Perspective ] -> []
[ Flag ] -> []
[ > Player | Cake ] -> [ > Player | > Cake ]
startloop
[ > Cake | Cake ] -> [ > Cake | > Cake ]
right [ moving TL | TR ] -> [ moving TL | moving TR ]
right [ TL | moving TR ] -> [ moving TL | moving TR ]
right [ moving BL | BR ] -> [ moving BL | moving BR ]
right [ BL | moving BR ] -> [ moving BL | moving BR ]
down [ moving TL | BL ] -> [ moving TL | moving BL ]
down [ TL | moving BL ] -> [ moving TL | moving BL ]
down [ moving TR | BR ] -> [ moving TR | moving BR ]
down [ TR | moving BR ] -> [ moving TR | moving BR ]
endloop
[ > Cake | Wall ] [ moving Player ] -> [ Cake | Wall ] [ Player ]
[ > Player | stationary Solid ] -> [ Player | Solid ]
[ stationary Player ] [ moving Cake ] -> [ Player ] [ Cake ]
[ stationary Player ] -> sfx2
(Detect completion)
late right [ TL | TR ] -> [ TL Flag | TR Flag ]
late right [ BL | BR ] -> [ BL Flag | BR Flag ]
late down [ TL Flag | no BL ] -> [ TL | ]
late down [ TR Flag | no BR ] -> [ TR | ]
late [ TL Flag ] [ TR Flag ] [ BL Flag ] [ BR Flag ] -> again
(Draw perspective)
late down [ TL | ] -> [ TL | BelowT ]
late down [ TR | ] -> [ TR | BelowT ]
late down [ BL | ] -> [ BL | BelowBL ]
late down [ BR | ] -> [ BR | BelowBR ]
late down [ Wall | ] -> [ Wall | BelowWall ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
#######
#.....#
#.a.s.#
#p.#..#
#.q.w.#
#.....#
#######
#######
#.qw..#
#p.s..#
###.a.#
###.#.#
###...#
#######
#########
###...###
##q.#.s##
#.......#
#..apw..#
###...###
#########
#########
###.p.###
#...#...#
#.#q.w#.#
#...#...#
###a.s###
###.#.###
##.....##
##.....##
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment