Skip to content

Instantly share code, notes, and snippets.

@Zaydiscool777
Created January 11, 2024 02:08
Show Gist options
  • Save Zaydiscool777/160478d421f51810b9dac2309e5487c2 to your computer and use it in GitHub Desktop.
Save Zaydiscool777/160478d421f51810b9dac2309e5487c2 to your computer and use it in GitHub Desktop.
Another Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Another Simple Block Pushing Game
author David Skinner
homepage www.puzzlescript.net
debug
verbose_logging
========
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.
Body
darkgray #888 #bbb
.000.
.111.
22222
.111.
.1.1.
Crate
orange
00000
0...0
0...0
0...0
00000
Flag
pink
0....
000..
00000
0....
0....
Five
blue
Four 4
green
Three 3
yellow
Two 2
orange
One 1
red
Zero 0
gray
=======
LEGEND
=======
Human = Player or Body
Pushing = Player
Pushes = Pushing or Crate
Pushable = Crate
Entrance = Flag
nothing = Background
. = Background
# = Wall
P = Player
B = Body
* = Crate
@ = Crate and Target
O = Target
5 = Five
Counter = Five or Four or Three or Two or One or Zero
F = Flag
=======
SOUNDS
=======
Crate move 36772507
Player move 60460507
Body create 26409502
5 create 79819105
4 create 12965304
3 create 74983300
2 create 44814302
1 create 66444706
================
COLLISIONLAYERS
================
Background
Target, Flag
Player, Wall, Counter, Body, Crate
======
RULES
======
[ > Pushes | Pushable ] -> [ > Pushes | > Pushable ]
([ > no Pushing | Entrance ] -> [ > no Pushing | > Entrance ])
[ > no nothing | no Pushable ] -> cancel
[ > no nothing | no Pushable ] -> cancel
[ moving Player ][1] -> [ moving Body ][0]
[ moving Player ][2] -> [ moving Player ][1]
[ moving Player ][3] -> [ moving Player ][2]
[ moving Player ][4] -> [ moving Player ][3]
[ moving Player ][5] -> [ moving Player ][4]
late [ Human Flag ] [ Counter ] -> [ Player Flag] [ 5 ]
==============
WINCONDITIONS
==============
all Target on Crate
=======
LEVELS
=======
####.5
#.O#..
#.f###
#@p..#
#..*f#
#.f###
####..
######
#....#
#.#P.#
#.*@.#
#.O@.#
#....#
######
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment