Created
February 26, 2017 01:50
-
-
Save anonymous/063c1bd7dc04cf4f109495c2545faa5c to your computer and use it in GitHub Desktop.
title
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 spikes 'n' stuff | |
author Alan Hazelden | |
(verbose_logging) | |
again_interval 0.05 | |
======== | |
OBJECTS | |
======== | |
Background | |
LIGHTGREEN GREEN | |
11111 | |
01111 | |
11101 | |
11111 | |
10111 | |
Target | |
DarkBlue | |
..... | |
.000. | |
.0.0. | |
.000. | |
..... | |
(..... | |
.0.0. | |
..0.. | |
.0.0. | |
.....) | |
SwitchOff | |
DarkBlue | |
..... | |
.000. | |
.0.0. | |
.000. | |
..... | |
SwitchOn | |
DarkBlue | |
Wall | |
BROWN DARKBROWN | |
00010 | |
11111 | |
01000 | |
11111 | |
00010 | |
ArrowTrapDown | |
BROWN DARKBROWN white transparent | |
00210 | |
11211 | |
22322 | |
12321 | |
00310 | |
ArrowTrapLeft | |
BROWN DARKBROWN white transparent | |
00210 | |
02211 | |
33322 | |
02211 | |
00210 | |
ArrowTrap | |
white | |
ArrowTrapArmed | |
DarkBlue | |
ArrowTrapRearming | |
DarkGrey | |
ArrowTrapRearming2 | |
Grey | |
Player | |
Black Orange White Blue | |
.000. | |
.111. | |
22222 | |
.333. | |
.3.3. | |
Crate | |
Orange Yellow | |
00000 | |
0...0 | |
0...0 | |
0...0 | |
00000 | |
SpikeTrap | |
green darkgreen green | |
00000 | |
01210 | |
02220 | |
01210 | |
00000 | |
SpikeTrapArmed | |
green white green grey | |
00000 | |
01210 | |
02220 | |
01210 | |
00000 | |
SpikeTrapDeadly | |
green white green grey | |
01010 | |
03230 | |
01210 | |
03230 | |
00000 | |
ArrowDown | |
black | |
..... | |
..0.. | |
..0.. | |
..0.. | |
..... | |
ArrowLeft | |
black | |
..... | |
..... | |
.000. | |
..... | |
..... | |
ArrowCollision | |
black | |
..... | |
..0.. | |
.000. | |
..0.. | |
..... | |
ArrowCollision2 | |
black | |
...0. | |
..... | |
.0... | |
....0 | |
..... | |
Blood | |
red | |
...0. | |
..... | |
.0... | |
....0 | |
..... | |
LOS | |
white | |
======= | |
LEGEND | |
======= | |
Solid = Wall or Crate | |
TriggersSpikes = Crate or Player | |
TriggersArrow = Player | |
Killable = Player | |
NeedsTick = SpikeTrap or SpikeTrapArmed or SpikeTrapDeadly or ArrowTrap or ArrowTrapArmed or ArrowTrapRearming or ArrowTrapRearming2 | |
Arrow = ArrowLeft or ArrowDown | |
. = Background | |
# = Wall | |
P = Player | |
* = Crate | |
(@ = SwitchOff) | |
O = Target | |
% = SpikeTrap | |
! = ArrowTrapDown and ArrowTrap and Wall | |
{ = ArrowTrapLeft and ArrowTrap and Wall | |
======= | |
SOUNDS | |
======= | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Target, SwitchOff, SwitchOn, SpikeTrap, SpikeTrapArmed, SpikeTrapDeadly | |
Blood | |
Player, Wall, Crate, Arrow | |
ArrowTrap, ArrowTrapArmed, ArrowTrapRearming, ArrowTrapRearming2 | |
ArrowTrapDown,ArrowTrapLeft | |
Arrow, LOS, ArrowCollision, ArrowCollision2 | |
====== | |
RULES | |
====== | |
(Start of turn) | |
[ ArrowCollision2 ] -> [] | |
[ ArrowCollision ] -> [ ArrowCollision2 ] again | |
[ moving Player ] [ NeedsTick ] -> [ moving Player ] [ action NeedsTick ] | |
[ action SpikeTrapDeadly ] -> [ SpikeTrap ] | |
[ action SpikeTrapArmed ] -> [ SpikeTrapDeadly ] | |
[ TriggersSpikes action SpikeTrap ] -> [ TriggersSpikes SpikeTrapArmed ] | |
(movement) | |
[ > Player | Crate ] -> [ > Player | > Crate ] | |
[ > Crate | Solid ] -> cancel | |
[ > Player | stationary Solid ] -> cancel | |
[ > Crate | no Solid ] -> [ | Crate ] | |
[ > Player | no Solid ] -> [ | Player ] | |
( death ) | |
([ Killable SpikeTrapArmed ] -> [ Blood SpikeTrapArmed ]) | |
[ Killable SpikeTrapDeadly ] -> [ Blood SpikeTrapDeadly ] | |
( end of turn ) | |
[ action ArrowTrapRearming ] -> [ ArrowTrapRearming2 ] | |
[ action ArrowTrapRearming2 ] -> [ ArrowTrap ] | |
[ ArrowTrapDown action ArrowTrapArmed ] -> [ ArrowTrapDown ArrowTrapRearming ArrowDown ] | |
[ ArrowTrapLeft action ArrowTrapArmed ] -> [ ArrowTrapLeft ArrowTrapRearming ArrowLeft ] | |
[ ArrowTrapDown action ArrowTrap ] -> [ ArrowTrapDown ArrowTrap down LOS ] | |
[ ArrowTrapLeft action ArrowTrap ] -> [ ArrowTrapLeft ArrowTrap left LOS ] | |
[ ArrowTrap > LOS | TriggersArrow ] -> [ ArrowTrapArmed | TriggersArrow ] | |
[ > LOS | Solid ] -> [ | Solid ] | |
+ [ > LOS | no Solid no LOS no TriggersArrow ] -> [ | > LOS ] | |
+ [ ArrowTrap | ... | > LOS | TriggersArrow ] -> [ ArrowTrapArmed | ... | | TriggersArrow ] | |
[ LOS ] -> [] | |
(arrows) | |
[ stationary ArrowDown ] -> [ down ArrowDown ] | |
[ stationary ArrowLeft ] -> [ left ArrowLeft ] | |
[ > Arrow | Killable ] -> [ | Blood ] | |
[ > Arrow | no Solid no Arrow ] -> [ | Arrow ] again | |
+ [ > Arrow | stationary Arrow ] -> [ | ArrowCollision ] again | |
[ > Arrow | Solid ] -> [ | Solid ] | |
([ Arrow SpikeTrapArmed ] -> [ SpikeTrapArmed ] | |
[ Arrow SpikeTrapDeadly ] -> [ SpikeTrapDeadly ]) | |
============== | |
WINCONDITIONS | |
============== | |
Some player on Target | |
======= | |
LEVELS | |
======= | |
######## | |
###%%.p. | |
###%%%## | |
###%%%%{ | |
###%%%%# | |
.o...%## | |
######## | |
######## | |
####%.p. | |
###%%%{# | |
###%#### | |
###%.### | |
.o...### | |
######## | |
##!#!#### | |
##.%...p. | |
##.#%#.## | |
##.%.#.## | |
##.#%..## | |
o....#### | |
######### | |
###!!### | |
###...p. | |
###..### | |
###%%### | |
###..### | |
.o...### | |
######## | |
###!!!### | |
###%.%.p. | |
###%%%### | |
###%%%.## | |
###....## | |
.o...#### | |
######### | |
###!#!### | |
###....p. | |
###....{# | |
###....## | |
###....{# | |
.o..##### | |
######### | |
###!#!### | |
###....p. | |
###....{# | |
###.%..## | |
###....{# | |
.o..##### | |
######### | |
###!!### | |
##%%.%p. | |
##%%..## | |
##%.%%%{ | |
###%%%%{ | |
.o...### | |
######## | |
message Thanks for playing :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment