Created
October 31, 2013 00:04
-
-
Save anonymous/7242439 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 Spooky Pumpkin Game | |
author Alan Hazelden | |
homepage www.draknek.org | |
realtime_interval 0.15 | |
key_repeat_interval 0.25 | |
again_interval 0.1 | |
noaction | |
run_rules_on_level_start | |
======== | |
OBJECTS | |
======== | |
Background | |
DARKBLUE BLACK | |
11111 | |
01111 | |
11101 | |
11111 | |
10111 | |
Wall | |
GREY DarkGrey | |
00111 | |
11101 | |
01001 | |
11110 | |
10011 | |
Player | |
#f2a342 #eb8931 #e46f20 brown lightgreen | |
..4.. | |
30113 | |
31123 | |
.122. | |
.3.3. | |
UnlitPumpkin | |
#f2a342 #eb8931 #e46f20 #5e3714 | |
.001. | |
03132 | |
01122 | |
13332 | |
.222. | |
LitPumpkin | |
#f2a342 #eb8931 #e46f20 yellow | |
.001. | |
03132 | |
01122 | |
13332 | |
.222. | |
UnlitWeb | |
White | |
0...0 | |
.00.0 | |
.0.0. | |
.0..0 | |
0.00. | |
LitWeb | |
Yellow | |
0...0 | |
.00.0 | |
.0.0. | |
.0..0 | |
0.00. | |
LitCandle1 | |
White Black Red Yellow | |
.333. | |
.323. | |
.303. | |
..0.. | |
.111. | |
LitCandle2 | |
White Black Orange Yellow | |
.333. | |
.323. | |
.303. | |
..0.. | |
.111. | |
LitCandle3 | |
White Black DarkRed Yellow | |
.333. | |
.323. | |
.303. | |
..0.. | |
.111. | |
UnlitCandle | |
White DarkBrown Grey | |
..... | |
..2.. | |
..0.. | |
..0.. | |
.111. | |
LightHere | |
#50533f #3c361a | |
11111 | |
01111 | |
11101 | |
11111 | |
10111 | |
LightL1 | |
#50533f #3c361a | |
....1 | |
...11 | |
...01 | |
....1 | |
....1 | |
LightL2 | |
#50533f #3c361a | |
....1 | |
....1 | |
...01 | |
...11 | |
....1 | |
LightR1 | |
#50533f #3c361a | |
1.... | |
0.... | |
11... | |
11... | |
1.... | |
LightR2 | |
#50533f #3c361a | |
1.... | |
01... | |
11... | |
1.... | |
1.... | |
LightLR1 | |
#50533f #3c361a | |
1...1 | |
01.11 | |
11.01 | |
1..11 | |
1...1 | |
LightLR2 | |
#50533f #3c361a | |
1...1 | |
01..1 | |
11.01 | |
11.11 | |
1...1 | |
LightU1 | |
#50533f #3c361a | |
..... | |
..... | |
..... | |
..11. | |
10111 | |
LightU2 | |
#50533f #3c361a | |
..... | |
..... | |
..... | |
.11.. | |
10111 | |
LightD1 | |
#50533f #3c361a | |
11111 | |
.11.. | |
..... | |
..... | |
..... | |
LightD2 | |
#50533f #3c361a | |
11111 | |
..11. | |
..... | |
..... | |
..... | |
LightUD1 | |
#50533f #3c361a | |
11111 | |
.11.. | |
..... | |
.111. | |
10111 | |
LightUD2 | |
#50533f #3c361a | |
11111 | |
.111. | |
..... | |
..11. | |
10111 | |
======= | |
LEGEND | |
======= | |
. = Background | |
# = Wall | |
P = Player | |
* = LitCandle1 | |
| = UnlitCandle | |
O = UnlitPumpkin | |
@ = LitPumpkin | |
W = UnlitWeb | |
X = UnlitWeb and Wall | |
(LitPumpkin = LitPumpkin1 or LitPumpkin2 or LitPumpkin3) | |
LitCandle = LitCandle1 or LitCandle2 or LitCandle3 | |
Candle = UnlitCandle or LitCandle | |
Pumpkin = UnlitPumpkin or LitPumpkin | |
Web = UnlitWeb or LitWeb | |
LitCandleOrWeb = LitCandle or LitWeb | |
Solid = Candle or Pumpkin or Wall | |
LightL = LightL1 or LightL2 | |
LightR = LightR1 or LightR2 | |
LightLR = LightLR1 or LightLR2 | |
LightU = LightU1 or LightU2 | |
LightD = LightD1 or LightD2 | |
LightUD = LightUD1 or LightUD2 | |
LightLayer1 = LightHere or LightL or LightR or LightLR | |
LightLayer2 = LightU or LightD or LightUD | |
Lighting = LightLayer1 or LightLayer2 | |
======= | |
SOUNDS | |
======= | |
Player MOVE 67518907 | |
Pumpkin MOVE 71614907 | |
LitWeb CREATE 46154308 | |
sfx0 46154308 | |
sfx1 93617507 (candle moved) | |
sfx2 68280908 (pumpkin lit) | |
EndLevel 67922308 | |
(ghost? 17935308) | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
LightLayer1 | |
LightLayer2 | |
Player, Wall, Pumpkin, Candle | |
Web | |
====== | |
RULES | |
====== | |
[ LitCandleOrWeb | UnlitCandle ] -> [ LitCandleOrWeb | LitCandle1 ] | |
late [ LitCandleOrWeb | UnlitCandle ] -> [ LitCandleOrWeb | UnlitCandle ] again sfx0 | |
[ > Player | Pumpkin ] -> [ > Player | > Pumpkin ] | |
[ > Player | Candle ] -> [ > Player | > Candle ] | |
[ > UnlitPumpkin | Candle ] -> [ > UnlitPumpkin | > Candle ] | |
startloop | |
[ > Candle | Candle ] -> [ > Candle | > Candle ] sfx1 | |
[ > LitPumpkin | UnlitPumpkin ] -> [ UnlitPumpkin | LitPumpkin ] sfx2 | |
[ > LitPumpkin | LitPumpkin ] -> [ > LitPumpkin | > LitPumpkin ] sfx1 | |
[ > LitPumpkin | Candle ] -> [ > LitPumpkin | > Candle ] sfx1 | |
[ > LitCandle | UnlitPumpkin ] -> [ | LitPumpkin ] sfx2 | |
[ > LitCandle | LitPumpkin ] -> [ > LitCandle | > LitPumpkin ] sfx1 | |
[ > Candle | no Solid ] -> [ | Candle ] sfx1 | |
[ > LitPumpkin | no Solid ] -> [ UnlitPumpkin | LitCandle1 ] sfx1 | |
endloop | |
[ > Candle ] -> cancel | |
[ > LitPumpkin ] -> cancel | |
[ > Player | LitPumpkin | no Solid ] -> [ Player | UnlitPumpkin | LitCandle1 ] sfx1 | |
late [ LitCandleOrWeb | UnlitWeb ] -> again | |
random [ LitCandleOrWeb | UnlitWeb ] [ stationary Player ] -> [ LitCandleOrWeb | LitWeb ] [ action Player ] again | |
random [ stationary Player ] [ LitWeb ] -> [ Player ] [] again | |
late [ Lighting ] -> [] | |
late [ LitPumpkin no LightHere ] -> [ LightHere random LitPumpkin ] | |
late [ LitCandle no LightHere ] -> [ LightHere random LitCandle ] | |
late [ LitWeb no LightHere ] -> [ LightHere random LitWeb ] | |
late up [ LightHere | no LightHere no LightU ] -> [ LightHere | random LightU ] | |
late down [ LightHere | no LightHere no LightU no LightD ] -> [ LightHere | random LightD ] | |
late down [ LightHere | LightU ] -> [ LightHere | random LightUD ] | |
late left [ LightHere | no LightHere no LightL ] -> [ LightHere | random LightL ] | |
late right [ LightHere | no LightHere no LightL no LightR ] -> [ LightHere | random LightR ] | |
late right [ LightHere | LightL ] -> [ LightHere | random LightLR ] | |
============== | |
WINCONDITIONS | |
============== | |
no UnlitPumpkin | |
======= | |
LEVELS | |
======= | |
######### | |
#..o#...# | |
#.....*.# | |
p.......# | |
#.....*.# | |
#..o#...# | |
######### | |
######### | |
#...#...# | |
#.....#.# | |
p.o.#.*.# | |
#.....#.# | |
#...#...# | |
######### | |
####### | |
#...### | |
#.#*.o# | |
p.....# | |
#.#*.o# | |
#...### | |
####### | |
###### | |
p....# | |
#.*..# | |
#.#### | |
#.o.## | |
#...## | |
#...## | |
###### | |
######### | |
#...#...# | |
#.o.#.|o# | |
p.......# | |
#.*.#.|o# | |
#...#...# | |
######### | |
####### | |
##...## | |
##.@.## | |
##...## | |
###.### | |
#..o..# | |
#.|.|.# | |
#..o..# | |
###p### | |
###p### | |
#.....# | |
#|@|@|# | |
#.....# | |
#.@.@.# | |
#o.o.o# | |
####### | |
######## | |
####...# | |
p....|.# | |
#.o#...# | |
#..##### | |
#.@##### | |
#..##### | |
######## | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment