Skip to content

Instantly share code, notes, and snippets.

Created Oct 14, 2013
Embed
What would you like to do?
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Ruby Shades
author HenkeTime
homepage henketime.neocities.org
run_rules_on_level_start
again_interval 0.05
========
OBJECTS
========
BackgroundLit
LightGray Grey
00001
00001
00001
00001
11110
BackgroundDark
Black
Wall
Black Grey
00010
11111
01000
11111
00010
WallDark
Black
DarkOld
darkblue
.....
.....
.....
.....
.....
LightOld
White
.....
.....
.....
.....
.....
DarkNew
Grey
.....
.....
..0..
.....
.....
LightNew
Yellow
.....
.....
..0..
.....
.....
OEPlayerNL
DarkBlue Yellow DarkBrown Black
..2..
.000.
0.00.
1.11.
...3.
OEPlayerNR
DarkBlue Yellow DarkBrown Black
..2..
.000.
.00.0
.11.1
.3...
OEPlayerSL
DarkBlue Yellow Red White Brown
..4..
.232.
.2320
.2321
.232.
OEPlayerSR
DarkBlue Yellow Red White Brown
..4..
.232.
0232.
1232.
.232.
OFPlayerSL
DarkBlue Yellow Black
..1..
.100.
.10.0
.11.1
.2...
OFPlayerSR
DarkBlue Yellow Black
..1..
.100.
0.10.
1.11.
...2.
CEPlayerNL
DarkBlue
..0..
.000.
0.00.
0.00.
...0.
CEPlayerNR
DarkBlue
..0..
.000.
.00.0
.00.0
.0...
CEPlayerSL
DarkBlue
..0..
.000.
.00.0
.00.0
.0...
CEPlayerSR
DarkBlue
..0..
.000.
0.00.
0.00.
...0.
(
OEPlayerEL
DarkBlue Yellow DarkBrown Black
..2..
.000.
.00.0
.11.1
.3...
)
Crate
Orange LightBrown Brown
.222.
21012
20102
21012
.222.
CrateDark
DarkBlue
.000.
0...0
0...0
0...0
.000.
BeamVert
White Red
.101.
.101.
.101.
.101.
.101.
BeamHor
White Red
.....
11111
00000
11111
.....
TempN
PINK
00000
00000
00000
00000
00000
OEPlayerEL
Black
OEPlayerER
Black
CEPlayerEL
Black
CEPlayerER
Black
OEPlayerWL
Black
OEPlayerWR
Black
CEPlayerWL
Black
CEPlayerWR
Black
=======
LEGEND
=======
. = BackgroundLit and LightOld
i = LightOld
# = Wall
P = OEPlayerNL and LightOld
C = Crate and LightOld
Background = BackgroundLit or BackgroundDark
Player = OEPlayerNL or OEPlayerNR or CEPlayerNL or CEPlayerNR or OEPlayerEL or OEPlayerER or CEPlayerEL or CEPlayerER or OEPlayerSL or OEPlayerSR or CEPlayerSL or CEPlayerSR or OEPlayerWL or OEPlayerWR or CEPlayerWL or CEPlayerWR or OFPlayerSL or OFPlayerSR
PlayerN = OEPlayerNL or OEPlayerNR
PlayerE = OEPlayerEL or OEPlayerER
PlayerS = OEPlayerSL or OEPlayerSR
PlayerW = OEPlayerWL or OEPlayerWR
Laser = BeamVert or BeamHor
Hlaser = BeamHor
Vlaser = BeamVert
Opaque = Player or Crate or CrateDark or Wall or WallDark
Pushable = Crate or CrateDark
Space = LightNew or LightOld or DarkNew or DarkOld
Dark = DarkNew or DarkOld
Light = LightNew or LightOld
=======
SOUNDS
=======
SFX0 93002904
================
COLLISIONLAYERS
================
Background
Player, Wall, WallDark, Crate, CrateDark, TempN
LightNew, LightOld, DarkNew, DarkOld
BeamVert, BeamHor
======
RULES
======
(Push Blocks)
[ > Player | Pushable ] -> [ > Player | > Pushable ]
(Player Movement)
[ UP Player Dark ] -> [ UP CEPlayerNL DarkOld ]
[ UP Player Light ] -> [ UP OEPlayerNL LightOld ]
(
[ RIGHT Player Light ] -> [ RIGHT OEPlayerNL LightOld ]
)
[ DOWN Player Dark ] -> [ DOWN CEPlayerSL DarkOld ]
[ DOWN Player Light ] -> [ DOWN OEPlayerSL LightOld ]
(
[ LEFT Player Light ] -> [ LEFT OEPlayerNL LightOld ]
)
(Friggin Laserbeams)
[ Laser ] -> []
late UP [ PlayerN | no Opaque no Laser ] -> [ PlayerN | BeamVert ]
late RIGHT [ PlayerE | no Opaque no Laser ] -> [ PlayerE | BeamHor ]
late DOWN [ PlayerS | no Opaque no Laser ] -> [ PlayerS | BeamVert ]
late LEFT [ PlayerW | no Opaque no Laser ] -> [ PlayerW | BeamHor ]
late HORIZONTAL [ Hlaser | no Opaque no Laser ] -> [ Hlaser | BeamHor ]
+ late VERTICAL [ Vlaser | no Opaque no Laser ] -> [ Vlaser | BeamVert ]
(Open eyes)
[ action CEPlayerNL Space ] -> [ OEPlayerNL LightNew ]
[ action CEPlayerSL Space ] -> [ OEPlayerSL LightNew ]
(Close eyes)
[ action OEPlayerNL Space ] -> [ CEPlayerNL DarkNew ]
[ action OEPlayerSL Space ] -> [ CEPlayerSL DarkNew ]
(Lighten)
late Orthogonal [ LightNew | ... | Dark ] -> [ LightNew | ... | LightNew ]
+ late [ LightNew ] -> [ LightOld ]
+ late [ BackgroundDark LightOld ] -> [ BackgroundLit LightOld ]
+ late [ CrateDark LightOld ] -> [ Crate LightOld ]
(Darken)
late Orthogonal [ DarkNew | ... | Light ] -> [ DarkNew | ... | DarkNew ]
+ late [ DarkNew ] -> [ DarkOld ]
+ late [ BackgroundLit DarkOld ] -> [ BackgroundDark DarkOld ]
+ late [ Crate DarkOld ] -> [ CrateDark DarkOld ]
(Player Anim -- NOT WORKING AT PRESENT)
(
UP [ UP Player ] -> [ UP OEPlayerNL ]
+ LATE [ Player ] -> [ OEPlayerNR ]
DOWN [ DOWN Player ] -> [ DOWN OEPlayerSL ]
+ LATE [ Player ] -> [ OEPLayerSR ]
)
(UP [ OEPlayerNR ] -> [ OEPlayerNL ])
(
LATE [ OEPlayerNL ] -> [ TempN ]
LATE [ OEPlayerNR ] -> [ OEPlayerNL ]
LATE [ TempN ] -> [ OEPlayerNR ]
)
([ DOWN EPlayerSL ] -> [ DOWN EPlayerSR ])
==============
WINCONDITIONS
==============
(no Shadow)
=======
LEVELS
=======
#########
#iiiiiii#
#iiiiiii#
#iiiiiii#
#iiPCiii#
#iiiiiii#
#iiiiiii#
#iiiiiii#
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment