Created
August 10, 2015 02:48
-
-
Save anonymous/54914dd095713c233979 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 Hazard Golf | |
author Mark Richardson | |
again_interval 0.1 | |
run_rules_on_level_start | |
zoomscreen 14x13 | |
verbose_logging | |
======== | |
OBJECTS | |
======== | |
Background | |
Black | |
Hud | |
Black | |
Stroke | |
LightGray Gray DarkGray | |
...0. | |
...0. | |
..02. | |
111.. | |
.12.. | |
OverPar | |
#F22 #D00 #800 | |
...0. | |
...0. | |
..02. | |
111.. | |
.12.. | |
Player | |
White Pink DarkBlue Red LightGray | |
.00.. | |
.11.. | |
22224 | |
.03.4 | |
.30.4 | |
Ball | |
White | |
..... | |
..... | |
..0.. | |
..... | |
..... | |
AirBall | |
White | |
..... | |
.00.. | |
.00.. | |
..... | |
..... | |
Tee | |
Red #A00 | |
..... | |
..... | |
0...0 | |
..1.. | |
..... | |
Hole | |
Black White | |
..1.. | |
..1.. | |
..0.. | |
..... | |
..... | |
Pin | |
Red White | |
..0.. | |
..00. | |
..000 | |
..1.. | |
..1.. | |
Green | |
#6F6 | |
Fairway | |
#2F2 | |
Rough | |
#0D0 | |
Water | |
Blue | |
Bridge | |
#C83 #D94 #B72 #A61 | |
01110 | |
02220 | |
03330 | |
01110 | |
02220 | |
Sand | |
#FF4 #FF0 #DD0 | |
00022 | |
12110 | |
22120 | |
00121 | |
21001 | |
Tree | |
Brown #7F7 #3F3 #0B0 | |
.111. | |
32221 | |
32221 | |
.333. | |
..0.. | |
Concrete | |
#AAA #999 | |
10000 | |
10000 | |
10000 | |
10000 | |
01111 | |
Ice | |
#FF8 | |
BrokenGlass | |
#FFF #BBF #77F | |
11020 | |
01100 | |
20202 | |
11001 | |
20110 | |
Duck | |
White Yellow Gray | |
..... | |
...0. | |
02001 | |
.000. | |
..... | |
AirDuck | |
White Yellow Gray | |
..... | |
22.0. | |
02201 | |
.000. | |
..... | |
Bear | |
#2F2 Red Black #B72 #A61 | |
00000 | |
03330 | |
33332 | |
33331 | |
40040 | |
AimH | |
White | |
..... | |
..... | |
.000. | |
..... | |
..... | |
AimV | |
White | |
..... | |
..0.. | |
..0.. | |
..0.. | |
..... | |
Cursor1 | |
Transparent | |
Cursor2 | |
White | |
..... | |
..0.. | |
.000. | |
..0.. | |
..... | |
Cursor3 | |
Transparent | |
BrokenGlassMessage | |
Transparent | |
Blood | |
Red | |
0...0 | |
.0... | |
00000 | |
0..0. | |
...0. | |
OutOfBounds | |
#F88 | |
0...0 | |
..... | |
..... | |
..... | |
0...0 | |
Init | |
Transparent | |
======= | |
LEGEND | |
======= | |
/ = Stroke and Hud and Rough | |
_ = Hud and Rough | |
@ = Player and Rough | |
Y = Tee and Fairway and Ball and BrokenGlassMessage and Init | |
P = Hole and Green | |
: = Green | |
, = Fairway | |
. = Rough | |
~ = Water | |
# = Bridge | |
- = Sand | |
T = Tree and Rough | |
Q = Tree and Fairway | |
+ = Concrete | |
% = Ice | |
" = BrokenGlass | |
d = Duck and Rough | |
e = Duck and Fairway | |
f = Duck and Green | |
g = Duck and Water | |
B = Bear | |
* = Blood and Fairway | |
Deadly = Bear | |
Hitable = Ball or Duck | |
AirHitable = AirBall or AirDuck | |
Sinkable = Ball | |
Swimable = Duck | |
WalkStop = Water or Tree or BrokenGlass or OutOfBounds | |
BallStop = Tree or OutOfBounds | |
BallRoll = Green or Bridge or Concrete or Ice | |
Score = Stroke or OverPar | |
Aim = AimH or AimV | |
Hit2 = Green or Fairway or Concrete or Ice or Rough or Bridge or Water or Sand or BrokenGlass | |
Hit3 = Green or Fairway or Concrete or Ice or Rough or Bridge or Water | |
Hit5 = Green or Fairway or Concrete or Ice | |
======= | |
SOUNDS | |
======= | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
BallRoll, Hit2 | |
Tee, Hole | |
Hitable | |
Player, Tree, Bear, Blood | |
AirHitable | |
Pin, BrokenGlassMessage | |
Cursor1, Cursor2, Cursor3, OutOfBounds, Init | |
Hud | |
Aim, Stroke, OverPar | |
====== | |
RULES | |
====== | |
(Dead) | |
[Player|Deadly]->[Blood|Deadly] | |
(Decoration) | |
up[Init][Hole|no Pin]->[Init][Hole|Pin] | |
[Init][no OutOfBounds no Init]->[Init][left OutOfBounds] | |
[Init]->[left OutOfBounds] | |
left [||||||left OutOfBounds|||||||]->[||||||down OutOfBounds|||||||] | |
down [||||||down OutOfBounds||||||]->[||||||||||||] | |
[moving OutOfBounds]->[OutOfBounds] | |
(Swim) | |
[stationary Swimable Water]->[randomdir Swimable Water] | |
[> Swimable no Cursor1|no Water]->[Swimable|] | |
[> Swimable no Cursor1|Water Swimable]->[Swimable|Water Swimable] | |
[> Swimable no Cursor1|Water no Swimable]->[|Water Swimable] | |
[> Swimable no Cursor1]->[] | |
(Adjust aim) | |
[moving Player][Cursor2]->[Player][moving Cursor2] | |
[> Cursor2|Cursor1][Aim]->[> Cursor2|Cursor1][] | |
[> Cursor2|Cursor1]->[|] | |
[action Cursor2 Hitable]->cancel | |
(Ready swing) | |
[> Player|Hitable]->[Player|^ Hitable Cursor1] | |
[> Hitable Hit2 |no BallStop no AimH]->[> Hitable Hit2|AimH Cursor2] | |
[> Hitable Hit2|AimH |no BallStop no AimH]->[> Hitable Hit2|AimH|AimH] | |
[> Hitable Hit3|AimH|AimH |no BallStop no AimH]->[> Hitable Hit3|AimH|AimH|AimH] | |
[> Hitable Hit5|AimH|AimH|AimH |no BallStop no AimH]->[> Hitable Hit5|AimH|AimH|AimH|AimH] | |
[> Hitable Hit5|AimH|AimH|AimH|AimH|no BallStop no AimH]->[> Hitable Hit5|AimH|AimH|AimH|AimH|AimH] | |
[vertical Hitable][AimH]->[vertical Hitable][AimV] | |
[> Hitable]->[Hitable] | |
(Cancel aim) | |
[Player|Cursor1 Ball][> Cursor2][Aim]->[> Player|Cursor1 Ball][> Cursor2][] | |
[Player|Cursor1][< Cursor2][Aim]->[< Player|Cursor1][< Cursor2][] | |
[Player|Cursor1 Ball][> Cursor2]->[> Player|Ball][] | |
[Player|Cursor1][< Cursor2]->[< Player|][] | |
[> Cursor2|no Aim]->[Cursor2|] | |
(Move ball) | |
[Cursor1|stationary Cursor3 stationary Ball BallRoll|no BallStop]->[> Cursor1|> Cursor3 > Ball BallRoll|]again | |
[Cursor1|stationary Cursor3 stationary Ball]->[|Ball] | |
[Cursor1 AirBall|Cursor3]->[Cursor1|Cursor3 Ball]again | |
[Cursor1 AirDuck|Cursor3]->[|Duck] | |
[Cursor1 AirHitable|...|Cursor3]->[> Cursor1 > AirHitable|...|Cursor3]again | |
[Water Sinkable]->[Water] | |
(Hit ball) | |
[action Cursor2][Aim]->[action Cursor2][] | |
up[Cursor1 Ball][action Cursor2][Stroke|no Stroke]->[Cursor1 AirBall][Cursor3][|]again | |
up[Cursor1 Ball][action Cursor2][OverPar|Hud no OverPar]->[Cursor1 AirBall][Cursor3][OverPar|Hud OverPar]again | |
up[Cursor1 Ball][action Cursor2][Hud||||||||||||Hud]->[Cursor1 AirBall][Cursor3][Hud OverPar||||||||||||Hud]again | |
[Cursor1 Duck][action Cursor2]->[Cursor1 AirDuck][Cursor3]again | |
(Walk) | |
[> Player|BrokenGlass][BrokenGlassMessage]->[Player|BrokenGlass][]message Ouch! That's broken glass! | |
[> Player|WalkStop]->cancel | |
[> Player][stationary Score]->[> Player][> Score] | |
[> Player][stationary Hud]->[> Player][> Hud] | |
late[Player|Deadly]->again | |
(Fail) | |
late [Ball Hole][OverPar]->[Ball Hole][OverPar]again message I'm over par. Let's pretend that never happened and try again. | |
[Ball Hole][OverPar]->restart | |
============== | |
WINCONDITIONS | |
============== | |
some Player | |
all Hole on Ball | |
no OverPar | |
======= | |
LEVELS | |
======= | |
message What a lovely day to play a round of golf. | |
message Hole 1, Par 3 | |
....................... | |
....................... | |
....................... | |
..T.................... | |
...................T... | |
....................... | |
.........T............. | |
..........,,,,,........ | |
......T..,,:::,,....... | |
.........,:::::,....... | |
........,,::P::,..+++++ | |
........,,,::::,....... | |
.T......,,,,::,,....... | |
.._.....,,,,,,,........ | |
.._.....,,,,,.......... | |
.._.....,,,,,.T........ | |
.._.T....,,,........... | |
.._.................... | |
.._.................... | |
[email protected]........ | |
.._T................... | |
.._.................... | |
.._.......+.......T.... | |
../.......+............ | |
../..T....+............ | |
../.......+............ | |
..........+............ | |
message Hole 2, Par 4 | |
.....T................ | |
...................... | |
............T......... | |
...................... | |
.......T.........T.... | |
...................... | |
...............T...... | |
..........,,,......... | |
..T......,,:,,....T... | |
.........,:P:,........ | |
.........,,:,,........ | |
.........,,,,,...T.... | |
........,,,,,--....... | |
.....T..,,,----....... | |
........,,,---........ | |
.........,,,,,........ | |
..T......,,,,,........ | |
..........,,,,,....... | |
..........,,,,,...T... | |
..........,,,,,....... | |
......T..,,,,,........ | |
.........,,,,,........ | |
..._.....---,,,....... | |
T.._....----,,,....... | |
..._....--,,,,........ | |
..._.....,,,,......... | |
..._T................. | |
..._............T..... | |
..._......@Y.......... | |
..._.................. | |
..._..T..............T | |
.../.......+.......... | |
.../.......+.......... | |
.../.......+....T..... | |
.T./.......+.......... | |
...........+.......... | |
message Hole 3, Par 5 | |
.....+.T..T..T..T........ | |
...T.+............T...... | |
.....+++++++++++......... | |
...............+......... | |
...T..T..T..T..+..T...... | |
......................... | |
......................... | |
..............,,,....T... | |
..T..........,,:,,....... | |
.............,:P:,....... | |
.............,,:,,....... | |
.............,,,,,.....T. | |
.............,,,,,....... | |
.........T...,,,,,....... | |
...T.........,,,,,..T.... | |
.............,,,,........ | |
............,,,,......... | |
............,,,,......T.. | |
.....T.....,,,,,......... | |
._.........,,,,...T...... | |
T_........,,,,........... | |
._......,,,,,............ | |
._......,,,,..........T.. | |
._.............T......... | |
._....................... | |
._T.....@Y............... | |
._...............T....... | |
./....................... | |
./.......+.T...........T. | |
./.......+............... | |
./.......+.........T..... | |
./...T...+............... | |
.........+............... | |
message Hole 4, Par 4 | |
..............T..+.......... | |
.................+.......... | |
.........T.......+.......... | |
.................+.....T..T. | |
.....T...........+..T....... | |
.................+......~~~~ | |
......T.....T.T..+.~~g~~~~~~ | |
..........T.....~#~~~~g~~~.. | |
..T.....T....~~~~#~~~~...... | |
...........~~~~~.,,,....T.T. | |
......T..~~~~~.,,,:,,.T..... | |
....T...~~~~.,,,,:P:,....... | |
......~~~~.,,,,,,,:,,...T... | |
._T..~~~~~,,,,,,,,,,........ | |
._..~~~~~,,,,,,,............ | |
._T.~~~.,,,,,,........T..... | |
._..~~~.,,,................. | |
._.~~~~.........T........... | |
._.~g~~..................... | |
._.~~~..@Y.................. | |
._.~~~......T.......T....... | |
._~~~~...................... | |
./~~~~...+.................. | |
./~~~~...+........T......... | |
./~~~....+.....T............ | |
./~~~....+.................. | |
..~~~....+.................. | |
message There's ducks on the fairway! Why am I paying green fees? | |
message Hole 5, Par 3 | |
~~~~...T................. | |
~~~~~~...T......T........ | |
++~~~~~~...T..........T.. | |
.++++~~~~~...T........... | |
....++++~~~~...T...T..... | |
.......+..~~~~........... | |
............~~~..T....... | |
.........,,,.~~~......... | |
........,,:,,.~~~..T..... | |
........,:P:,.~~~~....T.. | |
........,,:,,..~~~..T.... | |
......_.,,,,,...~~~...... | |
......_.,,e,,,,,~~~~.T... | |
......_.,e,,,,,,,~~~..... | |
......_..,,e,,,,,~~~.T... | |
......_.......d..~~~..... | |
......_..........~~~.T... | |
......_......@Y..~~~..... | |
......_.........~g~~.T... | |
......_.........~~~...... | |
......_.......+~~~~.T.... | |
....../......++~~~....... | |
....../......+~~~~.T..T.. | |
....../.....++~~~........ | |
............+~~~~.T...... | |
message What's that sparkly stuff? | |
message Hole 6, Par 4 | |
........................ | |
...T.................... | |
..................T..... | |
........................ | |
............T........... | |
.......T................ | |
.....................T.. | |
....T....,,,...T........ | |
........,,:,,........... | |
++++++..,:P:,.....T..... | |
........,,:,,........... | |
..T......,,,,,.......... | |
......._.,,,,,,.......T. | |
......._"",,,,,""....... | |
......._"",,,,,""....... | |
...T..._....,,,......... | |
......._............T... | |
......._.T.............. | |
......._......@Y..++++++ | |
......._................ | |
.T....._................ | |
......./...T........T... | |
......./................ | |
......./........T....... | |
......./................ | |
.....T.................. | |
message Hole 7, Par 5 | |
...T.....T.......T.......T... | |
.T...T.......T......T........ | |
........T........T.....T..... | |
...T........T...T........T... | |
.T....T...T..........T....... | |
....T........T....T.....T.... | |
.T.....T........T..........T. | |
....T......T..T...,,,.T...... | |
..T......T......T,,:,,....T.. | |
......T.....T....,:P:,..T.... | |
...T....""...T.T.,,:,,..+++++ | |
._...T.."",,,,,..T,,,...T.... | |
._T.....,,,,,,,,T.,,,T....T.. | |
._...T..,,,,,"",.T,,,........ | |
T_.....T,,,T.,,,,,,,,.T...T.. | |
._..T.......T,,,,,,--...T.... | |
._T........T..,,,,,--........ | |
[email protected]. | |
._............T....T...T..... | |
./.T.....T.....T............. | |
T/....T.+...T....T...T...T... | |
./......+T....T.......T....T. | |
./..T...+....T....T......T... | |
./....T.+..T..........T...... | |
.T......+T......T........T... | |
message That's a bear sleeping there. I'd better not disturb him. | |
message Hole 8, Par 5 | |
.............................. | |
.............................. | |
.............................. | |
.............................. | |
.............................. | |
.............................. | |
.T.T.......................... | |
.....T.T...........--......... | |
+++......T.........---........ | |
~~+++++....T......,,---....... | |
~~~~~~++++...T...,,:,--....... | |
~~~~~~~~~+++.....,:P:,........ | |
~~~~~~~~~~~++++..,,:,,...T.... | |
...T~~~~~~~~#~~~~~,,,......T.T | |
T........~~~#~~~g~~~~~~~~..... | |
..T...---.....~~~~~~~~~~~~~~~~ | |
T.....----.........~~g~~~~~~~~ | |
.T.....---,,,,,,,,,,,...~~~~~~ | |
._.....,,,,,,,,,,,B,,,..T....T | |
._T....,,,,,,,,,,,,,,,....T... | |
T_.....,,,,,,,,,,,,---..T....T | |
._.T....,,,,,,,,,,,----....T.. | |
._..................---..T.... | |
._..T......................T.. | |
[email protected]..... | |
._.T.............T...T....T.T. | |
./....T......T.....T....T..... | |
T/..T....+.....T......T....T.. | |
./.T...T.+..T.T......T..T....T | |
./...T...+.......T........T... | |
./T......+.....T...T...T...... | |
T.....T..+...T...T.........T.. | |
message Oh. Now I see why the course isn't being maintained... | |
message Hole 9, Par 5 | |
....T...T...T.......T....T. | |
.T..T..........T.......T... | |
.........T...T....T........ | |
......T............T....T.. | |
..T............T........... | |
......T..T.T..T..........T. | |
.T..T...................... | |
........T..T....,,,........ | |
....T..........,,:,,....... | |
.T........T....,:P:,..+++++ | |
...T..T.....T..,,:,,....... | |
........T.....,,,,,........ | |
..T..........,,,,,,........ | |
......T....,,,B,,,......... | |
...T.....,,,,,,,,,......... | |
........,,,B*,,--,......... | |
.....T..,,,,,,,----........ | |
..T.....,,,,,,,.---........ | |
........,,,,,.............. | |
.._.T...,,,,,.............. | |
.._.....,,,,,.............. | |
.._.....,,,,,............T. | |
.._......,,,.........T.T... | |
.._................T....+++ | |
.._............T.T...++++~~ | |
[email protected]....++++~~~~~ | |
.._............++++~~~g~~~. | |
../....T....++++~~~~~~~.... | |
../T.T.......~~~~~~~....T.T | |
.T/.......~g~~~~~.....T.... | |
../....~~~~~~~....T.T...... | |
../.~~~~~~~.....T.......... | |
.~~~~~~~....T.T............ | |
message Maybe I'll take up lawn bowls instead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment