Skip to content

Instantly share code, notes, and snippets.

@raggy
Forked from anonymous/readme.txt
Last active August 29, 2015 14:02
Show Gist options
  • Save raggy/ee4c36def9a6847d6308 to your computer and use it in GitHub Desktop.
Save raggy/ee4c36def9a6847d6308 to your computer and use it in GitHub Desktop.
Space Valet
title Space Valet
author Benjamin Davis
homepage bnhw.co.uk
again_interval 0.05
norepeat_action
run_rules_on_level_start
youtube FrPNcmprtFs
========
OBJECTS
========
Background
#0d0d0d
StarsA
White #c8d1d9 #adb8c1
.....
.....
.....
...0.
.....
StarsB
White #c8d1d9 #adb8c1
.....
..1..
.....
.....
.....
StarsC
White #c8d1d9 #adb8c1
.....
.....
....1
.....
.2...
StarsD
White #c8d1d9 #adb8c1
0....
.....
.....
...1.
.....
Parking
#1f1a1a #1f1a1a
00000
01110
01010
01110
00000
FloorUnderlay
#141212
00000
0...0
.....
.....
.....
WallPlaceholder
Transparent
WallUpOverlay
#4a4343 #302b2b #ff9e48 #ff8244
00000
33333
22222
22222
00000
WallUp
#4a4343 #302b2b #1f1a1a #1a1818 #141212
11111
24442
13331
13331
11111
WallDownOverlay
#4a4343 #302b2b
.....
.....
00000
11111
11111
WallDown
#4a4343 #302b2b
11111
.....
.....
.....
.....
WallLeftOverlay
#4a4343 #302b2b
.....
.....
....0
....0
....0
WallLeft
#4a4343 #302b2b
....0
....0
....1
....1
....1
WallRightOverlay
#4a4343 #302b2b
.....
.....
0....
0....
0....
WallRight
#4a4343 #302b2b
0....
0....
1....
1....
1....
TugUpOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff9e48 #ff8244 #ff5136
.....
.....
.....
55555
00000
TugUp
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff9e48 #ff8244 #ff5136
00000
12221
13331
13431
.333.
TugDownOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff9e48 #ff8244 #ff5136
.....
.....
.....
.222.
00000
TugDown
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff9e48 #ff8244 #ff5136
00000
55555
66666
67776
66666
TugLeftOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff9e48 #ff8244 #ff5136
.....
.....
.....
5000.
50002
TugLeft
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff9e48 #ff8244 #ff5136
50002
50002
61113
66113
6111.
TugRightOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff9e48 #ff8244 #ff5136
.....
.....
.....
.0005
20005
TugRight
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff9e48 #ff8244 #ff5136
20005
20005
31116
31166
.1116
RedLeftOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff5136 #ff2d2d
.....
.....
.....
.5000
25555
RedLeft
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff5136 #ff2d2d
25555
25000
36111
36611
.6111
RedMiddleOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff5136 #ff2d2d
.....
.....
.....
00000
55555
RedMiddle
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #ff5136 #ff2d2d
55555
00000
11111
11111
11111
GreenMiddleOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #aed876 #a5d642
.....
.....
.....
00000
55555
GreenMiddle
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #aed876 #a5d642
55555
00000
11111
11111
11111
GreenRightOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #aed876 #a5d642
.....
.....
.....
0055.
00052
GreenRight
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #aed876 #a5d642
00052
00552
11663
11163
1166.
YellowOverlay
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #f9dc77 #f4c56a
.....
.....
.....
05550
00500
YellowMiddle
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #f9dc77 #f4c56a
00500
00500
00500
00500
00500
YellowBottom
#f3f3f3 #e3d5d5 #695f5f #594e4e #302b2b #f9dc77 #f4c56a
55555
62226
63336
63436
.333.
PinkOverlay
#f3f3f3 #e3d5d5 #695f5f #df5a93 #df456b #d21111
.....
.....
.....
.222.
03030
PinkMiddle
#f3f3f3 #e3d5d5 #695f5f #df5a93 #df456b #d21111
03030
03030
00000
03030
03030
PinkBottom
#f3f3f3 #e3d5d5 #695f5f #df5a93 #df456b #d21111
03030
33333
44444
45554
44444
BeamHIntro1
#9adbf1
00000
00000
00000
.....
.....
BeamHIntro2
#c1e5f1
00000
00000
00000
.....
.....
BeamH
#d8e6ea
.....
00000
.....
.....
.....
BeamVIntro1
#9adbf1
.000.
.000.
.000.
.000.
.000.
BeamVIntro2
#c1e5f1
.000.
.000.
.000.
.000.
.000.
BeamV
#d8e6ea
..0..
..0..
..0..
..0..
..0..
BeamVOverlapIntro1
#9adbf1
.....
.....
.000.
.000.
.000.
BeamVOverlapIntro2
#c1e5f1
.....
.....
.....
.000.
.000.
BeamVOverlap
#d8e6ea
.....
.....
.....
..0..
..0..
One S1
Transparent
Two S2
Transparent
Three S3
Transparent
Four S4
Transparent
Five S5
Transparent
Six S6
Transparent
Spawn
Transparent
A
#f3f3f3
0000.
0..0.
0000.
0..0.
0..0.
B
#f3f3f3
0000.
0..0.
0000.
0..0.
0000.
C
#f3f3f3
0000.
0....
0....
0....
0000.
D
#f3f3f3
000..
0.00.
0..0.
0..0.
0000.
E
#f3f3f3
0000.
0....
000..
0....
0000.
F
#f3f3f3
0000.
0....
000..
0....
0....
G
#f3f3f3
0000.
0....
0.00.
0..0.
0000.
H
#f3f3f3
0..0.
0..0.
0000.
0..0.
0..0.
I
#f3f3f3
.0...
.0...
.0...
.0...
.0...
J
#f3f3f3
...0.
...0.
...0.
...0.
0000.
L
#f3f3f3
0....
0....
0....
0....
0000.
N
#f3f3f3
0000.
0..0.
0..0.
0..0.
0..0.
O
#f3f3f3
0000.
0..0.
0..0.
0..0.
0000.
P
#f3f3f3
0000.
0..0.
0000.
0....
0....
R
#f3f3f3
0000.
0..0.
0000.
0.0..
0.00.
S
#f3f3f3
0000.
0....
0000.
...0.
0000.
T
#f3f3f3
0000.
.0...
.0...
.0...
.0...
U
#f3f3f3
0..0.
0..0.
0..0.
0..0.
0000.
Apostrophe '
#f3f3f3
.0...
.0...
.....
.....
.....
=======
LEGEND
=======
BeamAnimation = BeamHIntro1 or BeamHIntro2 or BeamVIntro1 or BeamVIntro2
Beam = BeamH or BeamV or BeamAnimation
Floor = Parking
Overlay = TugUpOverlay or TugDownOverlay or TugLeftOverlay or TugRightOverlay or BeamVOverlap or BeamVOverlapIntro1 or BeamVOverlapIntro2 or RedLeftOverlay or RedMiddleOverlay or GreenMiddleOverlay or GreenRightOverlay or YellowOverlay or PinkOverlay
WallOverlay = WallUpOverlay or WallDownOverlay or WallLeftOverlay or WallRightOverlay
Underlay = FloorUnderlay
Tug = TugUp or TugDown or TugLeft or TugRight
TugNotUp = TugDown or TugLeft or TugRight
TugNotDown = TugUp or TugLeft or TugRight
TugNotLeft = TugUp or TugDown or TugRight
TugNotRight = TugUp or TugDown or TugLeft
TugHorizontal = TugLeft or TugRight
TugVertical = TugUp or TugDown
Red = RedLeft or RedMiddle
Green = GreenMiddle or GreenRight
Yellow = YellowMiddle or YellowBottom
Pink = PinkMiddle or PinkBottom
Player = Tug
Ship = Red or Green or Yellow or Pink
WallH = WallUp or WallDown
WallV = WallLeft or WallRight
Wall = WallPlaceholder or WallH or WallV
Stars = StarsA or StarsB or StarsC or StarsD
Number = S1 or S2 or S3 or S4 or S5 or S6
Letter = A or B or C or D or E or F or G or H or I or J or L or N or O or P or R or S or T or U or Apostrophe
. = Background and Spawn
, = Parking
# = WallPlaceholder and Spawn
@ = TugDown and Spawn
1 = RedMiddle and Spawn
2 = GreenMiddle and Spawn
3 = YellowMiddle and Spawn
4 = PinkMiddle and Spawn
=======
SOUNDS
=======
SFX0 52084901 ( Fire tractor beam )
(SFX0 15402501)
SFX1 87406107 ( Ship move ends )
SFX2 82040507 ( Ship rotates )
Tug Move 35429507
(Tug Move 45682107)
(Tug Move 87088108)
(Tug Move 40524908)
(Undo 90356307)
Restart 55532508
TitleScreen 21568908
StartLevel 18308108
EndLevel 40524908
================
COLLISIONLAYERS
================
Background
Stars
Underlay
Floor, Spawn
Wall
Beam
Tug, Ship
WallOverlay
Overlay
Number
Letter
======
RULES
======
( Setup ship numbers )
random [ no Ship | no Ship | no Ship | no Ship | no Ship | no Ship ] -> [ S1 | S2 | S3 | S4 | S5 | S6 ]
( Assign numbers to ships )
startloop
random [ Number no Ship ] [ Ship no Number ] -> [ ] [ Ship Number ]
[ Red no Number | Red Number ] -> [ Red Number | Red Number ]
[ Pink no Number | Pink Number ] -> [ Pink Number | Pink Number ]
[ Green no Number | Green Number ] -> [ Green Number | Green Number ]
[ Yellow no Number | Yellow Number ] -> [ Yellow Number | Yellow Number ]
endloop
( Remove unused numbers )
[ Number no Ship ] -> [ ]
( Setup parking )
[ Wall | ... | no Parking | Parking ] -> [ Wall | ... | Parking | Parking ]
( Spawn stars )
startloop
random [ no Spawn no Stars | Spawn ] -> [ | ]
random [ no Spawn no Stars | Spawn ] -> [ | ]
random [ Spawn ] -> [ random Stars ]
[ Stars | Spawn ] -> [ Stars | ] checkpoint
endloop
( Setup ships )
right [ no Red | RedMiddle ] -> [ | RedLeft ]
left [ no Green | GreenMiddle ] -> [ | GreenRight ]
down [ YellowMiddle | no Yellow ] -> [ YellowBottom | ]
down [ PinkMiddle | no Pink ] -> [ PinkBottom | ]
( Setup wall straights )
up [ Parking | WallPlaceholder ] -> [ Parking | WallUp ]
down [ Parking | WallPlaceholder ] -> [ Parking | WallDown ]
left [ Parking | WallPlaceholder ] -> [ Parking | WallLeft ]
right [ Parking | WallPlaceholder ] -> [ Parking | WallRight ]
up [ WallV | WallPlaceholder ] -> [ WallV | WallUp ]
down [ WallV | WallPlaceholder ] -> [ WallV | WallDown ]
( Continue horizontals to sides )
horizontal [ WallUp | WallPlaceholder ] -> [ WallUp | WallUp ]
horizontal [ WallDown | WallPlaceholder ] -> [ WallDown | WallDown ]
( Clear erroneous sections )
[ moving Wall ] -> [ WallPlaceholder ]
( Cancel beam when no ship attached )
[ Beam no BeamAnimation ] -> [ action Beam ]
[ Tug | ... | action Beam Ship ] -> [ Tug | ... | Beam Ship ]
[ stationary Beam | action Beam ] -> [ Beam | Beam ]
( Rotate to direction if not facing )
[ up TugHorizontal ] -> [ up TugUp ] SFX2
[ down TugHorizontal ] -> [ down TugDown ] SFX2
[ left TugVertical ] -> [ left TugLeft ] SFX2
[ right TugVertical ] -> [ right TugRight ] SFX2
[ up TugDown no Beam ] -> [ up TugUp ] SFX2
[ down TugUp no Beam ] -> [ down TugDown ] SFX2
[ left TugRight no Beam ] -> [ left TugLeft ] SFX2
[ right TugLeft no Beam ] -> [ right TugRight ] SFX2
( Cancel beam when Tug rotates )
[ TugVertical BeamH ] -> [ TugVertical action BeamH ]
[ TugHorizontal BeamV ] -> [ TugHorizontal action BeamV ]
( Remove marked beams )
[ action Beam ] [ Beam ] -> [ action Beam ] [ action Beam ]
[ action Beam ] -> [ ]
( Throw beam )
up [ action TugDown no WallDown | no WallUp ] -> [ action TugDown action BeamVIntro1 | action BeamVIntro1 ] SFX0
up [ action TugDown | ... | BeamVIntro1 no Ship no WallDown | no WallUp ] -> [ action TugDown action BeamVIntro1 | ... | action BeamVIntro1 | action BeamVIntro1 ]
down [ action TugUp | no WallH ] -> [ action TugUp action BeamVIntro1 | action BeamVIntro1 ] SFX0
down [ action TugUp | ... | BeamVIntro1 no Ship | no WallH ] -> [ action TugUp action BeamVIntro1 | ... | action BeamVIntro1 | action BeamVIntro1 ]
left [ action TugRight | no WallV ] -> [ action TugRight action BeamHIntro1 | action BeamHIntro1 ] SFX0
left [ action TugRight | ... | BeamHIntro1 no Ship | no WallV ] -> [ action TugRight action BeamHIntro1 | ... | action BeamHIntro1 | action BeamHIntro1 ]
right [ action TugLeft | no WallV ] -> [ action TugLeft action BeamHIntro1 | action BeamHIntro1 ] SFX0
right [ action TugLeft | ... | BeamHIntro1 no Ship | no WallV ] -> [ action TugLeft action BeamHIntro1 | ... | action BeamHIntro1 | action BeamHIntro1 ]
( Pull ship toward tug )
up rigid [ stationary TugDown Beam | ... | Ship Beam ] -> [ TugDown Beam | ... | down Ship ] again
+ down rigid [ stationary TugUp Beam | ... | Ship Beam ] -> [ TugUp Beam | ... | up Ship ] again
+ left rigid [ stationary TugRight Beam | ... | Ship Beam ] -> [ TugRight Beam | ... | right Ship ] again
+ right rigid [ stationary TugLeft Beam | ... | Ship Beam ] -> [ TugLeft Beam | ... | left Ship ] again
+ rigid [ moving Ship S1 | Ship S1 ] -> [ moving Ship S1 | moving Ship S1 ]
+ rigid [ moving Ship S2 | Ship S2 ] -> [ moving Ship S2 | moving Ship S2 ]
+ rigid [ moving Ship S3 | Ship S3 ] -> [ moving Ship S3 | moving Ship S3 ]
+ rigid [ moving Ship S4 | Ship S4 ] -> [ moving Ship S4 | moving Ship S4 ]
+ rigid [ moving Ship S5 | Ship S5 ] -> [ moving Ship S5 | moving Ship S5 ]
+ rigid [ moving Ship S6 | Ship S6 ] -> [ moving Ship S6 | moving Ship S6 ]
( Mark spaces next to WallDown )
left [ WallDown | stationary Background ] -> [ WallDown | up Background ]
up [ up Background | Background ] -> [ right Background | right Background ]
right [ WallDown | stationary Background ] -> [ WallDown | up Background ]
up [ up Background | Background ] -> [ left Background | left Background ]
right [ WallDown | right Background ] -> [ WallDown | up Background ]
up [ up Background | Background ] -> [ action Background | action Background ]
( Cancel Ship movement when multiple parts are moving past WallDown )
down [ left Ship left Background | left Ship left Background ] -> [ Ship Background | Ship Background ]
down [ right Ship right Background | right Ship right Background ] -> [ Ship Background | Ship Background ]
down [ horizontal Ship action Background | horizontal Ship action Background ] -> [ Ship Background | Ship Background ]
( Stop Background from moving )
[ moving Background ] -> [ Background ]
( Cancel movement when hitting a wall )
up [ up Ship WallDown ] -> [ Ship WallDown ]
up [ up Tug WallDown ] -> [ Tug WallDown ]
down [ down Ship | WallDown ] -> [ Ship | WallDown ]
down [ down Tug | WallDown ] -> [ Tug | WallDown ]
[ > Ship | WallV ] -> [ Ship | WallV ]
[ > Tug | WallV ] -> [ Tug | WallV ]
[ > Ship | WallUp ] -> [ Ship | WallUp ]
[ > Tug | WallUp ] -> [ Tug | WallUp ]
[ stationary Ship S1 | moving Ship S1 ] -> [ Ship S1 | Ship S1 ]
[ stationary Ship S2 | moving Ship S2 ] -> [ Ship S2 | Ship S2 ]
[ stationary Ship S3 | moving Ship S3 ] -> [ Ship S3 | Ship S3 ]
[ stationary Ship S4 | moving Ship S4 ] -> [ Ship S4 | Ship S4 ]
[ stationary Ship S5 | moving Ship S5 ] -> [ Ship S5 | Ship S5 ]
[ stationary Ship S6 | moving Ship S6 ] -> [ Ship S6 | Ship S6 ]
( Move numbers with ships )
[ moving Ship Number ] -> [ moving Ship moving Number ]
( Animate beams )
[ BeamHIntro2 ] -> [ up BeamH ] again
[ BeamVIntro2 ] -> [ up BeamV ] again
[ stationary BeamHIntro1 ] -> [ BeamHIntro2 ] again
[ stationary BeamVIntro1 ] -> [ BeamVIntro2 ] again
[ action Beam ] -> [ Beam ]
( Remove beams when unable to move ship any more )
[ stationary Tug | ... | stationary Ship stationary Beam no BeamAnimation ] -> [ stationary Tug | ... | stationary Ship action Beam ]
( Remove marked beams )
[ action Beam ] [ Beam ] -> [ action Beam ] [ action Beam ]
[ action Beam ] -> [ ] SFX1
( Unmark newly-animated beam )
[ up Beam ] -> [ Beam ]
( Start to pull ship toward tug )
[ action Tug ] -> [ Tug ] again
( Draw underlays )
late [ Underlay ] -> [ ]
late down [ Floor | no Floor ] -> [ Floor | FloorUnderlay ]
( Draw overlays )
late [ Overlay ] -> [ ]
late [ TugUp Beam ] -> [ TugUp Beam BeamVOverlap ]
late [ TugUp BeamVIntro1 ] -> [ TugUp BeamVIntro1 BeamVOverlapIntro1 ]
late [ TugUp BeamVIntro2 ] -> [ TugUp BeamVIntro2 BeamVOverlapIntro2 ]
late up [ Tug | ... | Beam Ship ] -> [ Tug | ... | Beam Ship BeamVOverlap ]
late up [ Tug | ... | BeamVIntro1 Ship ] -> [ Tug | ... | BeamVIntro1 Ship BeamVOverlapIntro1 ]
late up [ Tug | ... | BeamVIntro2 Ship ] -> [ Tug | ... | BeamVIntro2 Ship BeamVOverlapIntro2 ]
late up [ TugUp | ] -> [ TugUp | TugUpOverlay ]
late up [ TugDown | ] -> [ TugDown | TugDownOverlay ]
late up [ TugLeft | ] -> [ TugLeft | TugLeftOverlay ]
late up [ TugRight | ] -> [ TugRight | TugRightOverlay ]
late up [ RedLeft | ] -> [ RedLeft | RedLeftOverlay ]
late up [ RedMiddle | ] -> [ RedMiddle | RedMiddleOverlay ]
late up [ GreenMiddle | ] -> [ GreenMiddle | GreenMiddleOverlay ]
late up [ GreenRight | ] -> [ GreenRight | GreenRightOverlay ]
late up [ Yellow | no YellowMiddle ] -> [ Yellow | YellowOverlay ]
late up [ Pink | no PinkMiddle ] -> [ Pink | PinkOverlay ]
late [ WallOverlay ] -> [ ]
late up [ WallUp | ] -> [ WallUp | WallUpOverlay ]
late up [ WallDown | ] -> [ WallDown | WallDownOverlay ]
late up [ WallLeft | ] -> [ WallLeft | WallLeftOverlay ]
late up [ WallRight | ] -> [ WallRight | WallRightOverlay ]
==============
WINCONDITIONS
==============
All Ship on Parking
No Beam
=======
LEVELS
=======
message Nobody ever said parking would be easy, kid.
message Not even in space.
.......
.SALSA.
#######
#,1111#
#,,,,,#
#,,,,,#
#...###
.@.222.
.......
message Not bad, kid.
......
.FLOP.
######
#,,,,#
#,11,#
#,11,#
#....#
.33.@.
.33...
......
message Think you're getting pretty good, huh?
.........
.SHUFFLE.
#########
..#222#..
..#22,#..
..#,,,#..
..#,@,#..
###...###
..4..1...
..4..11..
.........
.........
message You know what they say, valet. "Easy come, easy go."
.........
.SCRATCH.
#########
.#,111,#.
.#,,,,,#.
.#,,@,,#.
##.....##
..44.22..
..4...2..
.........
message "Who parked these things?"
message A pro, that's who.
.........
.JUPITER.
#########
.#,,222#.
.#3,22,#.
.#3,22,#.
.#3,,,,#.
##..#..##
..11.@...
..11.....
.........
message Well, I'll tell ya', ain't no space valet ever made in a day.
.........
.CHA.CHA.
#########
.#11,33#.
.#1,,33#.
.#222,,#.
.#22,,,#.
##.###.##
...4.@...
...4.....
...4.....
.........
message Great, kid. Don't get cocky.
..........
.ASTEROID.
##########
..#,,,,#..
..#3311#..
..#3331#..
..#,22,#..
..#,,,,#..
###....###
...4..@...
...4......
..........
message SEE YOU SPACE VALET...
(
Unused names:
BACHATA
NEPTUNE
RUEDA
BOLERO
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment