Skip to content

Instantly share code, notes, and snippets.

@increpare
Created May 13, 2024 18:16
Show Gist options
  • Save increpare/dbb56b21ecd1fb58566054712ec622c8 to your computer and use it in GitHub Desktop.
Save increpare/dbb56b21ecd1fb58566054712ec622c8 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
norepeat_action
========
OBJECTS
========
Background
lightgreen green
11111
01111
11101
11111
10111
Target
darkblue
.....
.000.
.0.0.
.000.
.....
Wall
brown darkbrown
00010
11111
01000
11111
00010
Player
pink
Crate
orange
00000
0...0
0...0
0...0
00000
headhair
brown
hairblock
brown
.000.
00000
00000
00000
.000.
=======
LEGEND
=======
. = Background
# = Wall
P = Player
* = Crate
@ = Crate and Target
O = Target
h = headhair and player
pushable = crate or hairblock
pusher = crate or hairblock or Player
blocker = crate or hairblock or player
=======
SOUNDS
=======
sfx0 51118304
Crate move 36772507
================
COLLISIONLAYERS
================
Background
Target
Player, Wall, Crate, hairblock
headhair
======
RULES
======
[ orthogonal player headhair ] -> [ orthogonal player orthogonal headhair ]
[ > pusher | pushable ] -> [ > pusher | > pushable ]
right [ action player headhair | headhair | headhair ] -> [ action player headhair | action headhair | headhair ]
right [ action player headhair | no headhair | headhair ] -> [ action player action headhair | | action headhair ]
up [ action headhair | blocker ] -> cancel sfx0
up [ action headhair | no blocker ] -> [ | hairblock ]
[> pusher | wall] -> cancel
==============
WINCONDITIONS
==============
all Target on Crate
=======
LEVELS
=======
..........
..........
..........
.....*....
..........
...hhh....
...ppp....
.......o..
..........
..........
..........
..........
.....#....
..........
....#*#...
..........
..........
...hhh.o..
...ppp....
..........
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment