Skip to content

Instantly share code, notes, and snippets.

@increpare
Created February 20, 2026 22:40
Show Gist options
  • Select an option

  • Save increpare/5a304c75b7aff242f3a075e2d77fa9d8 to your computer and use it in GitHub Desktop.

Select an option

Save increpare/5a304c75b7aff242f3a075e2d77fa9d8 to your computer and use it in GitHub Desktop.
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Simple Block Pushing Game
author David Skinner
homepage www.puzzlescript.net
========
OBJECTS
========
Background .
lightgreen black
11111
11111
11011
11111
11111
Target e
yellow
.000.
.0...
.000.
.0...
.000.
Wall #
blue darkgreen
00010
11111
01000
11111
00010
Player p
brown orange white red
.000.
.111.
22222
23332
.333.
other o
gray
.000.
0.0.0
00000
00000
.000.
Happy h
green white black
01010
00000
02020
02220
.000.
sad
red white black
01010
00000
02220
02020
.000.
chaperoned
blue
.....
.....
..0..
.....
.....
=======
LEGEND
=======
finisher = player or happy
pushable = happy or other
=======
SOUNDS
=======
sfx1 34134
sfx2 13248104 (sad)
pushable move 36772507
endlevel 69521509
================
COLLISIONLAYERS
================
Background
Target
Player, Wall, Pushable, Sad, Happy
chaperoned
======
RULES
======
[ sad ] -> cancel sfx1
[ > player | pushable ] -> [ > player | > pushable ]
[ stationary happy | other ] -> [ stationary happy | > other ]
[ > player | ... | other ] [ happy ] -> [ > player | ... | other ] [ sad ] sfx2
late [ player | ... | other | ... | happy ] -> [ player | ... | other | ... | sad ] sfx2
late [ player | happy ] -> [ player chaperoned | happy ]
late [ player no chaperoned | other ] [ happy ] -> [ player | other ] [ sad ] sfx2
late [chaperoned]->[]
late [ stationary happy | other ] -> again
==============
WINCONDITIONS
==============
all Target on finisher
no sad
=======
LEVELS
=======
########
#......#
#..ee..#
#......#
#......#
#.o..h.#
#......#
#....p.#
#......#
########
##########
#........#
#........#
#........#
#e.....h.#
#eo......#
#........#
#....p...#
#........#
##########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment