Skip to content

Instantly share code, notes, and snippets.

Created April 5, 2017 18:58
Show Gist options
  • Save anonymous/f0cb61981bf6ff2cfb0ad0ec29fb116e to your computer and use it in GitHub Desktop.
Save anonymous/f0cb61981bf6ff2cfb0ad0ec29fb116e 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 Raft prototype
author Alan Hazelden
homepage www.draknek.org
noaction
norepeat_action
run_rules_on_level_start
realtime_interval 0.3
again_interval 0.1
(verbose_logging)
========
OBJECTS
========
Background
lightblue blue
11111
11101
11111
10111
11111
Target
DarkBlue Yellow Yellow
.111.
10201
12021
10201
.111.
Rock
Grey DarkGrey LightGrey
.....
..00.
.0001
.0111
...1.
Land
#dfcc4f yellow
11111
01111
11101
11111
10111
Player
#242620
.000.
.000.
00000
.000.
.0.0.
Crate
Orange
.....
.000.
.000.
.000.
.....
Raft
DarkBrown Brown
.111.
10001
10001
10001
.111.
Dragging
transparent
West
transparent
East
transparent
North
transparent
South
transparent
=======
LEGEND
=======
. = Background
_ = Raft
# = Land
P = Player and Land
* = Crate and Land
! = Target and Land
CanStand = Land or Raft
Direction = north or south or east or west
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Land
Raft
Target
Player, Crate, Rock
Direction, Dragging
======
RULES
======
[ Dragging | Raft ] -> [ Raft | ]
[ Dragging | Player ] -> [ Player | ]
[ no Raft > Player | no CanStand ] -> cancel
[ > Player | Crate | CanStand ] -> [ > Player | > Crate | CanStand ]
[ > Player | Crate Raft Land | no CanStand ] -> [ > Player | > Crate > Raft Land | ]
[ Raft no Land > Player | Land ] -> [ Raft | Land Player Dragging ] again
[ Raft Land > Player | no Land ] -> [ Player Land | Raft Dragging ] again
==============
WINCONDITIONS
==============
All Target on Player
All Player on Target
=======
LEVELS
=======
.........
.........
....#....
...####..
..#p##...
._##*#...
....##...
....##...
.........
.........
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment