Created
August 12, 2019 15:48
-
-
Save patrickgh3/2e7d36be28f039bc45f51e992006454d to your computer and use it in GitHub Desktop.
_______________ (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 _______________ | |
again_interval .07 | |
======== | |
OBJECTS | |
======== | |
Background | |
white | |
Yellow | |
yellow | |
Green | |
lightgreen | |
Brown | |
brown | |
Player | |
blue | |
Wall | |
black | |
slider_R | |
transparent | |
slider_L | |
transparent | |
slider_U | |
transparent | |
slider_D | |
transparent | |
======= | |
LEGEND | |
======= | |
. = Background | |
# = wall | |
P = Player | |
b = brown | |
y = yellow | |
g = green | |
slider = slider_R or slider_L or slider_U or slider_D | |
======= | |
SOUNDS | |
======= | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
yellow, green | |
Player, brown, wall | |
slider | |
====== | |
RULES | |
====== | |
(player pushes brown) | |
[ > Player | Brown ] -> [ > Player | > Brown ] | |
(initiate movement from any existing slider) | |
[brown slider_R]->[right Brown right slider_R] | |
[brown slider_L]->[left Brown left slider_L] | |
[brown slider_U]->[up Brown up slider_U] | |
[brown slider_D]->[down Brown down slider_D] | |
(create a slider based on the direction that a brown approaches a green) | |
right [right brown | green] -> [right brown | slider_R] | |
left [left brown | green] -> [left brown | slider_L] | |
down [down brown | green] -> [down brown | slider_D] | |
up [up brown | green] -> [up brown | slider_U] | |
(destroy the slider when a brown collides with another brown) | |
[ > Brown Slider | Brown] -> [ Brown | Brown ] | |
(this could be absorbing, destroying, collecting, eating, etc. depending on theming/sounds and such) | |
(and clear any sliders when brown reaches a yellow) | |
late [Brown Yellow] -> [Brown no slider] | |
(run another turn when we still have a slider on brown, otherwise clear the slider) | |
late [brown slider] -> again | |
late [slider no brown] -> [] | |
============== | |
WINCONDITIONS | |
============== | |
No Yellow | |
No Green | |
======= | |
LEVELS | |
======= | |
####### | |
#p....# | |
#.b...# | |
#..yy## | |
#..yy## | |
#..#### | |
####### | |
######### | |
#.......# | |
#.b.g.y.# | |
#..g.g..# | |
#.p.g.y.# | |
#y.y.#.## | |
######### | |
########## | |
#........# | |
#.g......# | |
#......g.# | |
#..b.....# | |
#...b....# | |
#.p...g..# | |
#........# | |
########## | |
######## | |
##y....# | |
##b....# | |
##..g..# | |
##..g..# | |
##..ybp# | |
##g.g..# | |
#yg.g..# | |
##g....# | |
##.....# | |
######## | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment