Skip to content

Instantly share code, notes, and snippets.

@sftrabbit
Created January 24, 2021 10:34
Show Gist options
  • Save sftrabbit/4ee14a71d455dc66f69a6f234efe783e to your computer and use it in GitHub Desktop.
Save sftrabbit/4ee14a71d455dc66f69a6f234efe783e 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 GREEN
11111
01111
11101
11111
10111
Target
DarkBlue
.....
.000.
.0.0.
.000.
.....
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
Player
Black Orange White Blue
.000.
.111.
22222
.333.
.3.3.
Crate
Orange Yellow
00000
0...0
0...0
0...0
00000
D
red
R
blue
U
purple
L
yellow
=======
LEGEND
=======
. = Background
# = Wall
P = Player
* = Crate
@ = Crate and Target
O = Target
=======
SOUNDS
=======
Crate MOVE 36772507
================
COLLISIONLAYERS
================
Background
Target
Player, Wall, Crate
D, R, U, L
======
RULES
======
[ > Player | Crate ] -> [ > Player | > Crate ]
RIGHT [ MOVING Player ] [ R ] -> [ MOVING Player ] [ RIGHT R ]
DOWN [ MOVING Player ] [ D ] -> [ MOVING Player ] [ DOWN D ]
LEFT [ MOVING Player ] [ L ] -> [ MOVING Player ] [ LEFT L ]
UP [ MOVING Player ] [ U ] -> [ MOVING Player ] [ UP U ]
==============
WINCONDITIONS
==============
All Target on Crate
=======
LEVELS
=======
###############
#.............#
#..D...D...D..#
#.R.........L.#
#......U......#
#.............#
#.............#
#.R.L..R....L.#
#.......U..U..#
#.............#
#.............#
#.............#
#O...........P#
###############
####..
#.O#..
#..###
#@P..#
#..*.#
#..###
####..
######
#....#
#.#P.#
#.*@.#
#.O@.#
#....#
######
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment