Skip to content

Instantly share code, notes, and snippets.

@octoConnors
Created August 18, 2015 20:44
Show Gist options
  • Save octoConnors/f4cd93c95ffc1c097440 to your computer and use it in GitHub Desktop.
Save octoConnors/f4cd93c95ffc1c097440 to your computer and use it in GitHub Desktop.
Wraparound Puzzlescript Game
text_color pink
background_color darkblue
run_rules_on_level_start
========
OBJECTS
========
player @
blue
.....
.000.
00000
.0.0.
.....
fried
darkred
.....
.000.
.000.
.0.0.
.....
wall #
brown lightbrown
00010
00010
11111
01000
11111
crate \
transparent orange
11111
10001
10001
10001
11111
background .
black darkgrey
00000
01010
00000
01010
00000
edge +
darkblue
block x
brown red
10001
01010
00100
01010
10001
target o
green
.....
.000.
.0.0.
.000.
.....
source_L 1
grey red
.....
..000
10010
..000
.....
beam_L
red
.....
.....
00000
.....
.....
highlight
blue
00000
0...0
0...0
0...0
00000
=======
LEGEND
=======
source = source_L
beam = beam_L
moveable = player or wall or crate or source
solid = wall or crate or source or block
& = target and crate
=======
SOUNDS
=======
sfx1 60245102 (failure)
sfx0 46374107 (push)
sfx2 31116506 (wrap)
sfx3 3877704
================
COLLISIONLAYERS
================
background
moveable, block
target
beam_L
fried
edge
highlight
======
RULES
======
[beam] -> [ ]
[highlight] -> [ ]
[> player|...|block] -> [player|...|block]
[< player|...|block] -> [player|...|block]
[> player|...|moveable] -> [> player|...|> moveable] sfx0
[< player|...|moveable] -> [< player|...|< moveable] sfx0
[edge|no edge|...|> moveable|edge] -> [edge > moveable| |...| |edge] sfx2
late left [1|no solid] -> [1|beam_L]
late left [beam_L|no solid] -> [beam_L|beam_L]
late left [edge|...|beam_L edge] -> [beam_L edge|...|beam_L edge]
late left [beam_L|no solid] -> [beam_L|beam_L]
late [player beam] -> [fried beam] sfx1
(aesthetical only)
late [player|...|edge] -> [player|...|edge highlight]
late [highlight|...|block] -> [ |...|block]
==============
WINCONDITIONS
==============
all crate on target
some player
=======
LEVELS
=======
+++++++
+.....+
+.@.\.+
+.....+
+.\.\.+
+.ooo.+
+++++++
+++++++
+.....+
+.@.\.+
+..x..+
+.\.\.+
+.ooo.+
+++++++
++++++
+.\..+
+....+
+...1+
+.@..+
+&o&.+
++++++
+++++++
+...+++
+.@.+++
+..x..+
+.\.\.+
+.oo..+
+++++++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment