Skip to content

Instantly share code, notes, and snippets.

@bowlercaptain
Created October 31, 2023 09:59
Show Gist options
  • Save bowlercaptain/f20139008e0734d3b1662cc82939dc7c to your computer and use it in GitHub Desktop.
Save bowlercaptain/f20139008e0734d3b1662cc82939dc7c 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
brown
00000
0...0
0...0
0...0
00000
pit
black
guy
red
Lion
orange
tiredlion
orange
door
orange black
.000.
00000
00010
00000
00000
=======
LEGEND
=======
. = Background
# = Wall
P = Player
* = Crate
@ = Crate and Target
O = Target
G = Guy
U = pit
L = Lion
D = door
person = Guy or Player
=======
SOUNDS
=======
Crate move 36772507
================
COLLISIONLAYERS
================
Background
Target, pit, door
Player, Wall, Crate, Guy, Lion, tiredlion
======
RULES
======
[ > person | Crate ] -> [ > person | > Crate ]
[ action player | person | no wall] -> [ player | | > person]
[ Guy | pit ] -> [< Guy | pit ]
[ > person | person ] -> [> person | > person]
[ Guy | ... | Player ] -> [ > Guy | ... | Player ]
[ person pit ] -> [pit]
[ stationary Lion | ... | person ] -> [ > Lion | ... | person ]
[ Lion | Person ] -> [ | tiredLion]
[ tiredlion ] -> [Lion]
==============
WINCONDITIONS
==============
all player on door
all Target on Crate
=======
LEVELS
=======
####...L...
#.O........
#.*.......#
#@P.....G.#
#..*.#.....
#..###.UU.D
####..G....
#U####
#G...D
#..P.#
#.@*.#
#.O@.#
#L...#
######
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment