Skip to content

Instantly share code, notes, and snippets.

@pancelor
Last active June 26, 2021 00:39
Show Gist options
  • Save pancelor/b1211326b4eb639bda60f482000cc288 to your computer and use it in GitHub Desktop.
Save pancelor/b1211326b4eb639bda60f482000cc288 to your computer and use it in GitHub Desktop.
Elephant Push (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Elephant Push
author pancelor
homepage pancelor.com
========
OBJECTS
========
Background
#56A019 GREEN
11111
01111
11101
11111
10111
Target
DarkBlue
00000
0...0
0...0
0...0
00000
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
tutorial
transparent
Player
Black Orange White Blue
.000.
.111.
22222
.333.
.3.3.
Crate0
#ccc #fff
.....
..00.
00001
000.0
0.0..
Crate1
#aaa #eee
.....
..00.
00001
000.0
0.0..
Crate2
#888 #ddd
.....
..00.
00001
000.0
0.0..
Crate3
#666 #ccc
.....
..00.
00001
000.0
0.0..
Crate4
#444 #bbb
.....
..00.
00001
000.0
0.0..
Crate5
#222 #aaa
.....
..00.
00001
000.0
0.0..
Crate6
#000 #999
.....
..00.
00001
000.0
0.0..
=======
LEGEND
=======
a = tutorial
. = Background
# = Wall
P = Player
* = Crate0
@ = Crate0 and Target
O = Target
Crate = Crate0 or Crate1 or Crate2 or Crate3 or Crate4 or Crate5 or Crate6
=======
SOUNDS
=======
sfx1 49144507
sfx2 20562505
================
COLLISIONLAYERS
================
Background
Target
tutorial
Player, Wall, Crate
======
RULES
======
[ > Player | Crate0 ] -> [ Player | Crate1 ] sfx1
[ > Player | Crate1 ] -> [ Player | Crate2 ] sfx1
[ > Player tutorial | Crate2 ] -> [ Player tutorial | Crate3 ] sfx1 message "keep pushing!"
[ > Player | Crate2 ] -> [ Player | Crate3 ] sfx1
[ > Player | Crate3 ] -> [ Player | Crate4 ] sfx1
[ > Player | Crate4 ] -> [ Player | Crate5 ] sfx1
[ > Player | Crate5 ] -> [ Player | Crate6 ] sfx1
[ > Player | Crate6 ] -> [ > Player | > Crate0 ] sfx2
==============
WINCONDITIONS
==============
All Target on Crate
=======
LEVELS
=======
message push the elephants into the rooms
#########
#.......#
#.......#
#a*ap.o.#
#.......#
#.......#
#########
message doin great
####..
#.o#..
#..###
#@p..#
#..*.#
#..###
####..
message last one
############
#####....###
#####....###
#.....a....#
#.a..a..apa#
#...a..##..#
#......##oo#
#.*##.*#####
#..##..#####
############
message your did it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment