Skip to content

Instantly share code, notes, and snippets.

@octoConnors
Created January 8, 2021 11:00
Show Gist options
  • Save octoConnors/ecd341a304111fc8b6237531ae0cf30a to your computer and use it in GitHub Desktop.
Save octoConnors/ecd341a304111fc8b6237531ae0cf30a to your computer and use it in GitHub Desktop.
YOU HAVE TO LIGHT THE FLOOR (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title YOU HAVE TO LIGHT THE FLOOR
author CONNORSES
homepage www.puzzlescript.net
========
OBJECTS
========
Background
LIGHTGREEN GREEN
11111
01111
11101
11111
10111
unlit
darkblue black
11111
10001
10001
10001
11111
lit
lightblue blue
11111
10001
10001
10001
11111
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
Player
Black Orange White lightblue
.000.
.111.
22222
.333.
.3.3.
Crate
Orange Yellow
00000
0...0
0...0
0...0
00000
Edge
Black
=======
LEGEND
=======
. = Background and unlit
# = Wall
P = Player and unlit
B = Player and lit
* = Background and lit
@ = Crate and unlit
$ = crate and lit
% = edge
Solid = wall or crate or player
======
SOUNDS
======
sfx0 16595300
sfx1 39654707
sfx2 52773707
sfx3 24831107
Crate MOVE 36772507
================
COLLISIONLAYERS
================
Background
Edge
lit, unlit
Player, Wall, Crate
======
RULES
======
[ > Player|Crate|no wall no crate] -> [ > Player| | Crate ]
[ > Player|Crate|solid] -> cancel
[ > Player|no wall unlit] -> [ |player lit] sfx3
[ > Player|no wall lit] -> [ |player unlit] sfx1
==============
WINCONDITIONS
==============
no unlit
=======
LEVELS
=======
message light all tiles to win
######
#..###
#.p..#
#....#
#..###
######
message you can push crates around
######
#...##
#.p..#
#..@.#
##...#
######
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment