Skip to content

Instantly share code, notes, and snippets.

@igaryhe
Created September 20, 2020 12:24
Show Gist options
  • Save igaryhe/aff566ceb04fd01940c7b185f277ba28 to your computer and use it in GitHub Desktop.
Save igaryhe/aff566ceb04fd01940c7b185f277ba28 to your computer and use it in GitHub Desktop.
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title My Game
author My Name Here
homepage www.puzzlescript.net
========
OBJECTS
========
Background
GREEN
Target
DarkBlue
Wall
BROWN
Player
PINK YELLOW BLACK
.222.
.000.
22122
.222.
.2.2.
Crate1
BLUE RED WHITE
02221
02221
02221
02221
02221
Crate2
RED BLUE WHITE
02221
02221
02221
02221
02221
=======
LEGEND
=======
. = Background
# = Wall
P = Player
* = Crate1
2 = Crate2
@ = Crate1 and Target
O = Target
Crate = Crate1 or Crate2
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Target
Player, Wall, Crate1, Crate2
======
RULES
======
UP [ UP player | crate ] -> [ UP player | UP crate ]
DOWN [ DOWN player | crate ] -> [ DOWN player | DOWN crate ]
LEFT [ horizontal player | crate ] -> [ horizontal player | horizontal crate ]
LEFT [ vertical player | crate ] -> [ vertical player | vertical crate ]
RIGHT [ horizontal player | crate ] -> [ horizontal player | horizontal crate ]
RIGHT [ vertical player | crate ] -> [ vertical player | vertical crate ]
RIGHT [ RIGHT crate1 | | crate2 ] -> [RIGHT crate1 | | RIGHT crate2 ]
LEFT [ LEFT crate1 | | crate2 ] -> [LEFT crate1 | | LEFT crate2 ]
RIGHT [ RIGHT crate2 | | crate1 ] -> [RIGHT crate2 | | RIGHT crate1 ]
LEFT [ LEFT crate2 | | crate1 ] -> [LEFT crate2 | | LEFT crate1 ]
==============
WINCONDITIONS
==============
All Target on Crate1
=======
LEVELS
=======
##########
#....#...#
#....2...#
#.P#*....#
#........#
#.#....###
#.#....#O#
##########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment