Skip to content

Instantly share code, notes, and snippets.

@ssteinbach
Last active January 10, 2024 06:56
Show Gist options
  • Save ssteinbach/7144e65012677f8a509d6c465e77f8c5 to your computer and use it in GitHub Desktop.
Save ssteinbach/7144e65012677f8a509d6c465e77f8c5 to your computer and use it in GitHub Desktop.
Shifter Test (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Shifter Test
author jade and stephan
homepage www.puzzlescript.net
========
OBJECTS
========
Background
gray
Target
yellow
.000.
0...0
0.0.0
0...0
.000.
Wall
black
Player
blue black
.000.
01010
10001
.000.
00.00
Crate
brown
Crate_One
darkbrown
Crate_Zero
darkblue
GreenKey
green
.0...
0.000
.0..0
.....
.....
GreenDoorClosed
black green
.....
.010.
01010
10101
01010
GreenDoorOpen
green
.....
.000.
0...0
0...0
0...0
=======
LEGEND
=======
. = Background
# = Wall
P = Player
* = Crate
@ = Crate and Target
C = Crate_One
X = Crate_Zero
O = Target
g = GreenKey
t = GreenDoorClosed
b = GreenDoorOpen
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Target
( overlappable things )
GreenKey, GreenDoorOpen
( things the player bumps into )
Player, Wall, Crate, Crate_One, Crate_Zero, GreenDoorClosed
======
RULES
======
( basic pushing rules )
[ > Player | Crate_One ] -> [ > Player | > Crate_Zero ]
[ > Player | Crate ] -> [ > Player | > Crate_One ]
( lock / key mechanics )
late [ Player GreenKey ] [ GreenDoorClosed ] -> [ Player GreenKey ] [ GreenDoorOpen ]
late [ Player GreenKey ] -> [Player]
==============
WINCONDITIONS
==============
all Player on Target
=======
LEVELS
=======
(level 1)
###############
##########*..O#
##...*..*.**..#
##...*..*.*.*.#
##...*..*.**..#
##************#
##...*...*..*.#
##.*.*.P.*.*..#
##...*...*.*..#
##.*******.*..#
##.*..*.......#
##.*..********#
##.*..*.......#
###############
###############
(level 2)
###############
###############
##.O.*..*.**.##
##...*..*****##
##..***.*.**.##
##***********##
##...*...*...##
##.*.*.*.*...##
##..**.*.*...##
##*******..*.##
##....*......##
##.*..*******##
##.*...**...P##
###############
###############
(level 3)
###############
###############
##...*..*.*.*##
##.*.*.O.*.*.##
##..***.*.*.*##
##t**********##
##.......*...##
##.....*.*.g.##
##..*******..##
##*******..**##
##..*.*.**...##
##.**.*.*.***##
##.*..*P*....##
###############
###############
(original tests
(test level)
#########
#....t.O#
#....t..#
#....ttt#
#..g....#
#P......#
#########
#########
#..*.*.O#
#..*..*.#
#**.**..#
#..*.*..#
#P.*.*..#
#########
#########
#..*.*.O#
#C.*..*.#
#**.**.*#
#.**.*..#
#P.*..**#
#########
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment