Last active
April 30, 2022 08:10
-
-
Save pancelor/9c3d4bdec17dfb2a4675d119ff3c1f18 to your computer and use it in GitHub Desktop.
tech demo -- optionals/maybe (PuzzleScript Script)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title tech demo -- optionals/maybe | |
author pancelor | |
======== | |
objects | |
======== | |
background | |
lightgreen green | |
11111 | |
01111 | |
11101 | |
11111 | |
10111 | |
wall | |
brown darkbrown | |
00010 | |
11111 | |
01000 | |
11111 | |
00010 | |
player | |
black orange white blue | |
.000. | |
.111. | |
22222 | |
.333. | |
.3.3. | |
target | |
darkblue | |
..... | |
.000. | |
.0.0. | |
.000. | |
..... | |
crate | |
orange | |
00000 | |
0...0 | |
0...0 | |
0...0 | |
00000 | |
flower | |
purple yellow | |
...0. | |
..010 | |
...0. | |
..... | |
..... | |
======= | |
legend | |
======= | |
. = background | |
# = wall | |
p = player | |
* = crate | |
@ = crate and target | |
o = target | |
f = flower | |
0flower = flower or background | |
======= | |
sounds | |
======= | |
sfx0 34000703 (if you hear this noise, the demo is broken) | |
================ | |
collisionlayers | |
================ | |
background | |
target | |
player, wall, crate | |
flower | |
====== | |
rules | |
====== | |
(if there's a flower, move it with the crate. if there's no flower, that's fine; just move the crate) | |
[> player | crate 0flower] -> [> player | > crate > 0flower] | |
(if you use flower instead of 0flower here, you can't push crates without flowers) | |
late [player no background] -> sfx0 (error sound; should never play) | |
============== | |
winconditions | |
============== | |
all target on crate | |
======= | |
levels | |
======= | |
######### | |
#.......# | |
#...f.@.# | |
#.p.*.o.# | |
#.......# | |
#.......# | |
######### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment