Skip to content

Instantly share code, notes, and snippets.

@david-crespo
Created April 16, 2023 17:13
Show Gist options
  • Save david-crespo/b669c972c68ec197147c8610a9f61c38 to your computer and use it in GitHub Desktop.
Save david-crespo/b669c972c68ec197147c8610a9f61c38 to your computer and use it in GitHub Desktop.
Adjacent sides test (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Adjacent sides test
author David Crespo
homepage www.puzzlescript.net
debug
========
OBJECTS
========
Background
green
Target
darkblue
Wall
brown
Player
blue
Crate
orange
A
red
B
purple
B2
black
B3
darkblue
C
white
=======
LEGEND
=======
. = Background
# = Wall
P = Player
- = Crate
@ = Crate and Target
O = Target
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Target
Player, Wall, Crate, A, B, B2, B3, C
======
RULES
======
[ B2 ] -> [ B ]
[ B3 ] -> [ B ]
[ Crate ] -> [ B ]
[ > Player | A ] -> [ > Player | > A ]
[ > Player | C ] -> [ > Player | > C ]
startloop
late [ A | B ] -> [ A | B2 ]
late [ C | B ] -> [ C | B3 ]
late [ B3 | A ] -> [ Crate | A ]
late [ B2 | C ] -> [ Crate | C ]
endloop
==============
WINCONDITIONS
==============
( all Target on Crate )
=======
LEVELS
=======
#########
#.......#
#.......#
#.PA.B..#
#....C..#
#.......#
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment