Skip to content

Instantly share code, notes, and snippets.

@henkekm
Forked from anonymous/readme.txt
Last active Dec 25, 2015
Embed
What would you like to do?
Ruby Shades Code
Ruby Shades
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 DarkBlue
00010
11111
01000
11111
00010
WallDark
Black
DarkOld
darkblue
.....
.....
.....
.....
.....
LightOld
White
.....
.....
.....
.....
.....
DarkNew
Grey
.....
.....
..0..
.....
.....
LightNew
Yellow
.....
.....
..0..
.....
.....
Visor
LightGrey Grey Red
00001
00001
00001
02021
11110
VisorDark
Black
(Open Empty Player Sprites)
OEPlayerNL
DarkBlue Yellow Black DarkBrown
..3..
.000.
0.00.
1.11.
...2.
(
OEPlayerNR
DarkBlue Yellow Black DarkBrown
..3..
.000.
.00.0
.11.1
.2...
)
OEPlayerEL
DarkBlue Yellow Black Red Brown
...43
.0101
1.100
..0.2
.2...
(
OEPlayerER
DarkBlue Yellow Black Red Brown
...43
.0001
1.000
..0.2
.2...
)
OEPlayerSL
DarkBlue Yellow Red White Brown
..4..
.232.
.2320
.2321
.232.
(
OEPlayerSR
DarkBlue Yellow Red White Brown
..4..
.232.
0232.
1232.
.232.
)
OEPlayerWL
DarkBlue Yellow Black Red Brown
34...
1000.
001.1
2.0..
...2.
(
OEPlayerWR
DarkBlue Yellow Black Red Brown
34...
1010.
001.1
2.0..
...2.
)
(Open Full Player Sprites)
OFPlayerNL
DarkBlue Yellow Black
..0..
.000.
0.00.
1.11.
...2.
(
OFPlayerNR
DarkBlue Yellow Black
..0..
.000.
.00.0
.11.1
.2...
)
OFPlayerEL
DarkBlue Yellow Black Red
...0.
.0101
1.100
..0.2
.2...
(
OFPlayerER
DarkBlue Yellow Black Red
...0.
.0001
1.000
..0.2
.2...
)
OFPlayerSL
DarkBlue Yellow Black
..0..
.100.
.11.0
.00.1
.2...
(
OFPlayerSR
DarkBlue Yellow Black
..0..
.100.
0.11.
1.00.
...2.
)
OFPlayerWL
DarkBlue Yellow Black Red
.0...
1000.
001.1
2.0..
...2.
(
OFPlayerWR
DarkBlue Yellow Black Red
.0...
1010.
001.1
2.0..
...2.
)
(Closed Player Sprites)
CEPlayerNL
DarkBlue
..0..
.000.
0.00.
0.00.
...0.
CFPlayerNL
DarkBlue
.....
.000.
0.00.
0.00.
...0.
(
CEPlayerNR CFPlayerNR
DarkBlue
..0..
.000.
.00.0
.00.0
.0...
)
CEPlayerEL
DarkBlue
...0.
.0000
0.000
..0.0
.0...
CFPlayerEL
DarkBlue
.....
.0000
0.000
..0.0
.0...
(
CEPlayerER CFPlayerER
DarkBlue
...0.
.0000
0.000
..0.0
.0...
)
CEPlayerSL
DarkBlue
..0..
.000.
.00.0
.00.0
.0...
CFPlayerSL
DarkBlue
.....
.000.
.00.0
.00.0
.0...
(
CEPlayerSR CFPlayerSR
DarkBlue
..0..
.000.
0.00.
0.00.
...0.
)
CEPlayerWL
DarkBlue
.0...
0000.
000.0
0.0..
...0.
CFPlayerWL
DarkBlue
.....
0000.
000.0
0.0..
...0.
(
CEPlayerWR CFPlayerWR
DarkBlue
.0...
0000.
000.0
0.0..
...0.
)
Crate
Orange Brown DarkBrown
.222.
21012
20102
21012
.222.
CrateDark
DarkBlue
.000.
0...0
0...0
0...0
.000.
Exit
Orange Brown DarkBrown White
00000
00000
00000
00000
00000
BeamVert
White Red
.101.
.101.
.101.
.101.
.101.
BeamHor
Red
00000
00000
.....
.....
.....
TempN
PINK
00000
00000
00000
00000
00000
=======
LEGEND
=======
* = Visor and LightOld
. = BackgroundLit and LightOld
i = LightOld
# = Wall
P = OEPlayerNL and LightOld
C = Crate and LightOld
x = Exit and LightOld
Background = BackgroundLit or BackgroundDark
Player = OEPlayerNL or CEPlayerNL or OEPlayerEL or CEPlayerEL or OEPlayerSL or CEPlayerSL or OEPlayerWL or CEPlayerWL or OFPlayerNL or CFPlayerNL or OFPlayerEL or CFPlayerEL or OFPlayerSL or CFPlayerSL or OFPlayerWL or CFPlayerWL (or OEPlayerNR or CEPlayerNR or OEPlayerER or CEPlayerER or OEPlayerSR or CEPlayerSR or OEPlayerWR or CEPlayerWR or OFPlayerSR)
PlayerDark = CEPlayerNL or CEPlayerEL or CEPlayerSL or CEPlayerWL (or CEPlayerNR or CEPlayerER or CEPlayerSR or CEPlayerWR)
PlayerLight = OEPlayerNL or OEPlayerEL or OEPlayerSL or OEPlayerWL (or OEPlayerNR or OEPlayerER or OEPlayerSR or OEPlayerWR)
PlayerEmpty = OEPlayerNL or CEPlayerNL or OEPlayerEL or CEPlayerEL or OEPlayerSL or CEPlayerSL or OEPlayerWL or CEPlayerWL (or OEPlayerNR or CEPlayerNR or OEPlayerER or CEPlayerER or OEPlayerSR or CEPlayerSR or OEPlayerWR or CEPlayerWR)
PlayerFull = OFPlayerNL or CFPlayerNL or OFPlayerEL or CFPlayerEL or OFPlayerSL or CFPlayerSL or OFPlayerWL or CFPlayerWL (or OFPlayerNR or CFPlayerNR or OFPlayerER or CFPlayerER or OFPlayerSR or CFPlayerSR or OFPlayerWR or CFPlayerWR)
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
Visor, VisorDark, Exit
Player, Wall, WallDark, Crate, CrateDark, TempN
LightNew, LightOld, DarkNew, DarkOld
BeamVert, BeamHor
======
RULES
======
(Push Blocks)
[ > Player | Pushable ] -> [ > Player | > Pushable ]
(Player Movement)
[ UP PlayerEmpty Dark ] -> [ UP CEPlayerNL DarkOld ]
+ late [ CEPlayerNL VisorDark ] -> [ CFPlayerNL ]
[ UP PlayerEmpty Light ] -> [ UP OEPlayerNL LightOld ]
+ late [ OEPlayerNL Visor ] -> [ OFPlayerNL ]
[ UP PlayerFull Dark ] -> [ UP CFPlayerNL DarkOld ]
[ UP PlayerFull Light ] -> [ UP OFPlayerNL LightOld ]
[ RIGHT PlayerEmpty Dark ] -> [ RIGHT CEPlayerEL DarkOld ]
+ late [ CEPlayerEL VisorDark ] -> [ CFPlayerEL ]
[ RIGHT PlayerEmpty Light ] -> [ RIGHT OEPlayerEL LightOld ]
+ late [ OEPlayerEL Visor ] -> [ OFPlayerEL ]
[ RIGHT PlayerFull Dark ] -> [ RIGHT CFPlayerEL DarkOld ]
[ RIGHT PlayerFull Light ] -> [ RIGHT OFPlayerEL LightOld ]
[ DOWN PlayerEmpty Dark ] -> [ DOWN CEPlayerSL DarkOld ]
+ late [ CEPlayerSL VisorDark ] -> [ CFPlayerSL ]
[ DOWN PlayerEmpty Light ] -> [ DOWN OEPlayerSL LightOld ]
+ late [ OEPlayerSL Visor ] -> [ OFPlayerSL ]
[ DOWN PlayerFull Dark ] -> [ DOWN CFPlayerSL DarkOld ]
[ DOWN PlayerFull Light ] -> [ DOWN OFPlayerSL LightOld ]
[ LEFT PlayerEmpty Dark ] -> [ LEFT CEPlayerWL DarkOld ]
+ late [ CEPlayerWL VisorDark ] -> [ CFPlayerWL ]
[ LEFT PlayerEmpty Light ] -> [ LEFT OEPlayerWL LightOld ]
+ late [ OEPlayerWL Visor ] -> [ OFPlayerWL ]
[ LEFT PlayerFull Dark ] -> [ LEFT CFPlayerWL DarkOld ]
[ LEFT PlayerFull Light ] -> [ LEFT OFPlayerWL LightOld ]
(Friggin Laserbeams)
[ Laser ] -> []
late UP [ OEPlayerNL | no Opaque no Laser ] -> [ OEPlayerNL | BeamVert ]
late RIGHT [ OEPlayerEL | no Opaque no Laser ] -> [ OEPlayerEL | BeamHor ]
late DOWN [ OEPlayerSL | no Opaque no Laser ] -> [ OEPlayerSL | BeamVert ]
late LEFT [ OEPlayerWL | no Opaque no Laser ] -> [ OEPlayerWL | 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 CFPlayerNL Space ] -> [ OFPlayerNL LightNew ]
([ action CEPlayerNR Space ] -> [ OEPlayerNR LightNew ])
[ action CEPlayerEL Space ] -> [ OEPlayerEL LightNew ]
[ action CFPlayerEL Space ] -> [ OFPlayerEL LightNew ]
([ action CEPlayerER Space ] -> [ OEPlayerER LightNew ])
[ action CEPlayerSL Space ] -> [ OEPlayerSL LightNew ]
[ action CFPlayerSL Space ] -> [ OFPlayerSL LightNew ]
([ action CEPlayerSR Space ] -> [ OEPlayerSR LightNew ])
[ action CEPlayerWL Space ] -> [ OEPlayerWL LightNew ]
[ action CFPlayerWL Space ] -> [ OFPlayerWL LightNew ]
([ action CEPlayerWR Space ] -> [ OEPlayerWR LightNew ])
(Close eyes)
[ action OEPlayerNL Space ] -> [ CEPlayerNL DarkNew ]
[ action OFPlayerNL Space ] -> [ CFPlayerNL DarkNew ]
([ action OEPlayerNR Space ] -> [ CEPlayerNR DarkNew ])
[ action OEPlayerEL Space ] -> [ CEPlayerEL DarkNew ]
[ action OFPlayerEL Space ] -> [ CFPlayerEL DarkNew ]
([ action OEPlayerER Space ] -> [ CEPlayerER DarkNew ])
[ action OEPlayerSL Space ] -> [ CEPlayerSL DarkNew ]
[ action OFPlayerSL Space ] -> [ CFPlayerSL DarkNew ]
([ action OEPlayerSR Space ] -> [ CEPlayerSR DarkNew ])
[ action OEPlayerWL Space ] -> [ CEPlayerWL DarkNew ]
[ action OFPlayerWL Space ] -> [ CFPlayerWL DarkNew ]
([ action OEPlayerWR Space ] -> [ CEPlayerWR DarkNew ])
(Lighten)
late Orthogonal [ LightNew | ... | Dark ] -> [ LightNew | ... | LightNew ]
+ late [ LightNew ] -> [ LightOld ]
+ late [ BackgroundDark LightOld ] -> [ BackgroundLit LightOld ]
+ late [ CrateDark LightOld ] -> [ Crate LightOld ]
+ late [ VisorDark LightOld ] -> [ Visor LightOld ]
(Darken)
late Orthogonal [ DarkNew | ... | Light ] -> [ DarkNew | ... | DarkNew ]
+ late [ DarkNew ] -> [ DarkOld ]
+ late [ BackgroundLit DarkOld ] -> [ BackgroundDark DarkOld ]
+ late [ Crate DarkOld ] -> [ CrateDark DarkOld ]
+ late [ Visor DarkOld ] -> [ VisorDark 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
==============
All Exit on PlayerFull
=======
LEVELS
=======
#######x#
#.iiiiii#
#iiiii*i#
#iiiiiii#
#iiPCiii#
#iiiiiii#
#iiiiiii#
#iiiiiii#
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment