Skip to content

Instantly share code, notes, and snippets.

Created March 27, 2017 13:40
Show Gist options
  • Save anonymous/270c5e2130a3676060e41547f8298f10 to your computer and use it in GitHub Desktop.
Save anonymous/270c5e2130a3676060e41547f8298f10 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 Water & Crates
========
OBJECTS
========
Background
Black
Player
White
..0..
.000.
00000
00000
.0.0.
BoxOnLand
Brown
.000.
00000
00000
00000
.000.
BoxInWater
DarkBrown
MoveUp
White
.....
..0..
.0.0.
.....
.....
MoveDown
White
.....
.....
.0.0.
..0..
.....
MoveLeft
White
.....
..0..
.0...
..0..
.....
MoveRight
White
.....
..0..
...0.
..0..
.....
HighLand
Yellow
LowLand
Yellow #E0D088
00000
01000
00000
00010
00000
ShallowWater
Blue
DeepWater
Blue DarkBlue
00000
01000
00000
00010
00000
Spring
Blue
.000.
00000
00.00
00000
.000.
=======
LEGEND
=======
Move = MoveUp or MoveDown or MoveLeft or MoveRight
Land = HighLand or LowLand
Water = ShallowWater or DeepWater
@ = Player and HighLand
1 = BoxOnLand and HighLand
2 = BoxInWater and ShallowWater
3 = BoxInWater and DeepWater
o = Spring and HighLand
░ = HighLand
▒ = ShallowWater
▓ = DeepWater
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Land, Water
Spring, BoxInWater
Player, BoxOnLand
Move
======
RULES
======
( Boxes move with momentum )
[ BoxInWater MoveUp ] -> [ up BoxInWater MoveUp ]
[ BoxInWater MoveDown ] -> [ down BoxInWater MoveDown ]
[ BoxInWater MoveLeft ] -> [ left BoxInWater MoveLeft ]
[ BoxInWater MoveRight ] -> [ right BoxInWater MoveRight ]
( Stop box against another box, but transfer momentum )
[ > BoxInWater Move | BoxInWater no Move ] -> [ BoxInWater > Move | BoxInWater ] again
( Stop box against land )
[ > BoxInWater Move | Land ] -> [ BoxInWater | Land ]
( Take Move with BoxInWater )
[ moving BoxInWater Move ] -> [ moving BoxInWater moving Move ] again
( Boxes sink in water )
[ BoxOnLand Water no BoxInWater ] -> [ BoxInWater Water ] again
( Don't walk on water )
[ > Player | Water no BoxInWater ] -> [ Player | Water ]
( Push boxes on land )
[ > Player | BoxOnLand ] -> [ > Player | > BoxOnLand ]
( Set up momentum )
up [ > BoxOnLand | Water no BoxInWater ] -> [ > MoveUp > BoxOnLand | Water ] again
down [ > BoxOnLand | Water no BoxInWater ] -> [ > MoveDown > BoxOnLand | Water ] again
left [ > BoxOnLand | Water no BoxInWater ] -> [ > MoveLeft > BoxOnLand | Water ] again
right [ > BoxOnLand | Water no BoxInWater ] -> [ > MoveRight > BoxOnLand | Water ] again
[ > BoxOnLand Spring ] -> again
[ > BoxOnLand | Spring ] -> again
( Raise water level )
[ Spring no BoxOnLand ] [ stationary Water | LowLand ] -> [ Spring ] [ Water | action ShallowWater ] again
[ BoxOnLand ShallowWater ] -> [ BoxInWater ShallowWater ]
( Lower water level )
[ BoxOnLand Spring ] [ stationary Land | ShallowWater ] -> [ BoxOnLand Spring ] [ Land | action LowLand ] again
[ BoxInWater LowLand ] -> [ BoxOnLand LowLand ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▒▒▒▒▓▓▓▓▓▓▓
▓▓▓▓▓▒▒░░░▒▓▓▓▓▓▓
▓▒▒▒▒░░@o░▒▓▓▓▓▓▓
▓▓▓▒░░░1░▒▓▓▓▓▓▓▓
▓▓▓▓▒▒▒░2▒▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▒▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▒▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▒▒▓▓▓▓▓▓▓
▓▓▓▓▓░░░▒▒▓▓▓▓▓▓▓
▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment