Skip to content

Instantly share code, notes, and snippets.

Created May 29, 2014 17:59
Show Gist options
  • Select an option

  • Save anonymous/15c7afcf914b431820cf to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/15c7afcf914b431820cf to your computer and use it in GitHub Desktop.
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title harpoon
author mark wonnacott
homepage http://twitter.com/ragzouken
========
OBJECTS
========
MoveUp
white
MoveDown
white
MoveLeft
white
MoveRight
white
Grabbed
orange
Fired
red
Pulling
yellow
Background
black darkblue
00010
00000
00000
01000
00000
Floor
darkblue darkgreen
00000
01000
00010
00001
00100
Dirt
black darkbrown darkblue
01112
21212
02121
20021
00010
Wall
darkgreen grey darkgrey
01112
21212
02121
20021
00010
HarpoonU
grey darkgrey
..0..
.101.
.000.
10001
00000
HarpoonR
grey darkgrey
01...
0001.
00000
0001.
01...
HarpoonD
grey darkgrey
00000
10001
.000.
.101.
..0..
HarpoonL
grey darkgrey
...10
.1000
00000
.1000
...10
ChainV
grey darkgrey
..1..
.010.
.0.0.
.010.
..1..
ChainH
grey darkgrey
.....
.000.
11.11
.000.
.....
Player
black darkgrey yellow
..1..
.111.
.212.
00100
00000
=======
LEGEND
=======
. = Background
, = Floor
# = Dirt
x = Wall
U = HarpoonU and Floor
HarpoonV = HarpoonU or HarpoonD
HarpoonH = HarpoonL or HarpoonR
Harpoon = HarpoonV or HarpoonH
Chain = ChainV or ChainH
Movement = MoveUp or MoveDown or MoveLeft or MoveRight
(Moveable = Harpoon)
Moveable = HarpoonU or HarpoonD or HarpoonL or HarpoonR or Player
HarpoonState = Grabbed or Fired or Pulling
@ = Player and Floor
=======
SOUNDS
=======
sfx0 42134702 (harpoon embed)
sfx1 47981307 (fininish pulling)
sfx2 24680901 (fall)
Chain create 51709100
Chain destroy 51709100
Dirt destroy 25748707
================
COLLISIONLAYERS
================
HarpoonState
Movement
Background
Floor
Chain
Player Wall Dirt Harpoon
======
RULES
======
(player, harpoon falls)
[ Player no Floor | Harpoon no Pulling ] -> [ | Harpoon ] sfx2
[ Harpoon no Floor no Pulling no Fired ] -> [ ] sfx2
(don't walk off the edge)
[ > Player | no Floor ] -> [ Player | ]
(pull towards chain)
[ action Player | Chain | ... | Harpoon ] -> [ Player | Chain | ... | Harpoon Pulling ]
(pull player)
[ Player Chain ] -> [ Player ]
[ Player | ... | Harpoon Pulling ] -> [ > Player | ... | Harpoon Pulling ] again
[ Player | Harpoon Pulling ] -> [ Player | Harpoon ] sfx1 again
([ Player | Harpoon Pulling ] -> [ Player | Harpoon ] sfx1 again)
(push/pull harpoon)
[ HarpoonU ] -> [ up HarpoonU ]
[ HarpoonD ] -> [ down HarpoonD ]
[ HarpoonL ] -> [ left HarpoonL ]
[ HarpoonR ] -> [ right HarpoonR ]
[ > Player | Harpoon ] -> [ > Player | > Harpoon > Grabbed ]
[ < Player | > Harpoon ] -> [ < Player | < Harpoon < Grabbed ]
[ ^ Player | > Harpoon ] -> [ ^ Player | < Harpoon < Grabbed MoveRight ]
[ v Player | > Harpoon ] -> [ v Player | < Harpoon < Grabbed MoveLeft ]
[ orthogonal Harpoon no Grabbed ] -> [ Harpoon ]
[ moving HarpoonU Grabbed MoveRight ] -> [ moving HarpoonR ]
[ moving HarpoonD Grabbed MoveRight ] -> [ moving HarpoonL ]
[ moving HarpoonL Grabbed MoveRight ] -> [ moving HarpoonU ]
[ moving HarpoonR Grabbed MoveRight ] -> [ moving HarpoonD ]
[ moving HarpoonU Grabbed MoveLeft ] -> [ moving HarpoonL ]
[ moving HarpoonD Grabbed MoveLeft ] -> [ moving HarpoonR ]
[ moving HarpoonL Grabbed MoveLeft ] -> [ moving HarpoonD ]
[ moving HarpoonR Grabbed MoveLeft ] -> [ moving HarpoonU ]
[ Grabbed ] -> [ ]
(fire harpoon)
up [ action Player | HarpoonU ] -> [ Player | Fired HarpoonU ]
down [ action Player | HarpoonD ] -> [ Player | Fired HarpoonD ]
left [ action Player | HarpoonL ] -> [ Player | Fired HarpoonL ]
right [ action Player | HarpoonR ] -> [ Player | Fired HarpoonR ]
up [ Fired HarpoonU ] -> [ > Fired > HarpoonU ]
down [ Fired HarpoonD ] -> [ > Fired > HarpoonD ]
left [ Fired HarpoonL ] -> [ > Fired > HarpoonL ]
right [ Fired HarpoonR ] -> [ > Fired > HarpoonR ]
[ > Fired > Harpoon | Wall ] -> [ Harpoon | Wall ] sfx0 again
vertical [ > Fired > Harpoon ] -> [ > Fired > Harpoon ChainV ]
horizontal [ > Fired > Harpoon ] -> [ > Fired > Harpoon ChainH ]
[ > Harpoon > Fired | Dirt ] -> [ > Harpoon | Floor ]
[ > Harpoon | Dirt ] -> [ > Harpoon | Floor ]
[ > Fired > Harpoon ] -> [ > Fired > Harpoon ] again
(clean up chains)
[ Chain ] -> [ action Chain ]
[ Player | ... | Chain ] -> [ Player | ... | > Chain ]
[ > Chain | ... | Harpoon ] -> [ Chain | ... | Harpoon ]
[ > Chain Harpoon ] -> [ Chain Harpoon ]
[ moving Chain ] -> [ ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
xxxxxxxxxxxxxxx
x....,,,......x
x..,,,,,,,,...x
x.,,,,,u,,,...x
x.,@,,,,,,....x
x..,,,,.......x
x,,,,,......,,x
x,,,,......,,,x
x,,,.......,,,x
x.,.........#,x
x...........#,x
x......,,...,,x
x.,,###,,...,,x
x,######,.....x
x#,,,,,,......x
xxxxxxxxxxxxxxx
x.,,###,,...,,x
x,,,##,,,.....x
x.,,,,,,......x
xxxxxxxxxxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment