Skip to content

Instantly share code, notes, and snippets.

@raggy
Forked from anonymous/readme.txt
Last active August 29, 2015 14:16
Show Gist options
  • Save raggy/f899111d95472b8160ac to your computer and use it in GitHub Desktop.
Save raggy/f899111d95472b8160ac to your computer and use it in GitHub Desktop.
title Space Junker
(title Awkward Spaceship Contruction Kit)
author Benjamin Davis
homepage bnhw.co.uk
background_color #302B2B
realtime_interval 0.1
run_rules_on_level_start
(debug)
(verbose_logging)
========
OBJECTS
========
Background
#0d0d0d
Core
White
.....
.000.
.000.
.000.
.....
Tug
#F3F3F3 #FF9E48
11111
10001
11011
10001
11111
Red
#FF5136
Green
#AED876
Pink
#DF5A93
Yellow
#f9dc77
LightJunk
#302B2B
MidJunk
#262020
DarkJunk
#191313
LaserUp
#E3D5D5
..0..
..0..
..0..
..0..
.000.
LaserDown
#E3D5D5
.000.
..0..
..0..
..0..
..0..
LaserLeft
#E3D5D5
.....
....0
00000
....0
.....
LaserRight
#E3D5D5
.....
0....
00000
0....
.....
ThrusterUp
#E3D5D5
.....
.....
..0..
.000.
.000.
ThrusterDown
#E3D5D5
.000.
.000.
..0..
.....
.....
ThrusterLeft
#E3D5D5
.....
...00
..000
...00
.....
ThrusterRight
#E3D5D5
.....
00...
000..
00...
.....
MaleConnectorUp
#695F5F
.....
..0..
..0..
..00.
.000.
MaleConnectorDown
#695F5F
.000.
.00..
..0..
..0..
.....
MaleConnectorLeft
#695F5F
.....
...00
.0000
....0
.....
MaleConnectorRight
#695F5F
.....
0....
0000.
00...
.....
FemaleConnectorUp
#594E4E
.....
...0.
.0.0.
.0.0.
.000.
FemaleConnectorDown
#594E4E
.000.
.0.0.
.0.0.
.0...
.....
FemaleConnectorLeft
#594E4E
.....
.0000
....0
..000
.....
FemaleConnectorRight
#594E4E
.....
000..
0....
0000.
.....
S1
Transparent
.....
.....
..0..
.....
.....
S2
Transparent
.....
.0...
.....
...0.
.....
S3
Transparent
.....
.0...
..0..
...0.
.....
S4
Transparent
.....
.0.0.
.....
.0.0.
.....
S5
Transparent
.....
.0.0.
..0..
.0.0.
.....
S6
Transparent
.....
.0.0.
.0.0.
.0.0.
.....
S7
Transparent
.....
.0.0.
.000.
.0.0.
.....
S8
Transparent
.....
.000.
.0.0.
.000.
.....
S9
Transparent
.....
.000.
.000.
.000.
.....
Connected
Transparent
.....
..0..
.000.
..0..
.....
Powered
Transparent
.....
..0..
.000.
..0..
.....
PreviouslyPowered
Transparent
.....
..0..
.000.
..0..
.....
ThrustingHorizontal
Transparent
.....
.0.0.
00000
.0.0.
.....
ThrustingVertical
Transparent
..0..
.000.
..0..
.000.
..0..
LaserBeamHorizontal
Blue
.....
.....
00000
.....
.....
LaserBeamVertical
Blue
..0..
..0..
..0..
..0..
..0..
=======
LEGEND
=======
Player = Tug
Ship = Red or Green or Pink or Yellow
MaleConnector = MaleConnectorUp or MaleConnectorDown or MaleConnectorLeft or MaleConnectorRight
MaleConnectorNotUp = MaleConnectorDown or MaleConnectorLeft or MaleConnectorRight
MaleConnectorNotDown = MaleConnectorUp or MaleConnectorLeft or MaleConnectorRight
MaleConnectorNotLeft = MaleConnectorUp or MaleConnectorDown or MaleConnectorRight
MaleConnectorNotRight = MaleConnectorUp or MaleConnectorDown or MaleConnectorLeft
MaleConnectorHorizontal = MaleConnectorLeft or MaleConnectorRight
MaleConnectorVertical = MaleConnectorUp or MaleConnectorDown
FemaleConnector = FemaleConnectorUp or FemaleConnectorDown or FemaleConnectorLeft or FemaleConnectorRight
FemaleConnectorNotUp = FemaleConnectorDown or FemaleConnectorLeft or FemaleConnectorRight
FemaleConnectorNotDown = FemaleConnectorUp or FemaleConnectorLeft or FemaleConnectorRight
FemaleConnectorNotLeft = FemaleConnectorUp or FemaleConnectorDown or FemaleConnectorRight
FemaleConnectorNotRight = FemaleConnectorUp or FemaleConnectorDown or FemaleConnectorLeft
FemaleConnectorHorizontal = FemaleConnectorLeft or FemaleConnectorRight
FemaleConnectorVertical = FemaleConnectorUp or FemaleConnectorDown
Connector = MaleConnector or FemaleConnector
ConnectorUp = MaleConnectorUp or FemaleConnectorUp
ConnectorDown = MaleConnectorDown or FemaleConnectorDown
ConnectorLeft = MaleConnectorLeft or FemaleConnectorLeft
ConnectorRight = MaleConnectorRight or FemaleConnectorRight
Laser = LaserUp or LaserDown or LaserLeft or LaserRight
Thruster = ThrusterUp or ThrusterDown or ThrusterLeft or ThrusterRight
ThrusterVertical = ThrusterUp or ThrusterDown
ThrusterHorizontal = ThrusterLeft or ThrusterRight
Thrusting = ThrustingVertical or ThrustingHorizontal
Number = S1 or S2 or S3 or S4 or S5 or S6 or S7 or S8 or S9
Wall = DarkJunk or MidJunk or LightJunk
Attachment = Connector or Laser or Thruster
AttachmentUp = ConnectorUp or LaserUp or ThrusterUp
AttachmentDown = ConnectorDown or LaserDown or ThrusterDown
AttachmentLeft = ConnectorLeft or LaserLeft or ThrusterLeft
AttachmentRight = ConnectorRight or LaserRight or ThrusterRight
Pushable = Attachment or Ship
LaserBeam = LaserBeamHorizontal or LaserBeamVertical
StopsLaserBeam = Wall or Ship or Tug
. = Background
@ = Tug
r = Red
g = Green
p = Pink
y = Yellow
ṙ = Red and Core
ġ = Green and Core
ṗ = Pink and Core
ẏ = Yellow and Core
▓ = LightJunk
▒ = MidJunk
░ = DarkJunk
↓ = LaserUp
↑ = LaserDown
→ = LaserLeft
← = LaserRight
▲ = ThrusterUp
▼ = ThrusterDown
◀ = ThrusterLeft
▶ = ThrusterRight
┴ = MaleConnectorUp
┬ = MaleConnectorDown
┤ = MaleConnectorLeft
├ = MaleConnectorRight
╨ = FemaleConnectorUp
╥ = FemaleConnectorDown
╡ = FemaleConnectorLeft
╞ = FemaleConnectorRight
║ = MaleConnectorUp and FemaleConnectorDown
│ = MaleConnectorDown and FemaleConnectorUp
═ = MaleConnectorLeft and FemaleConnectorRight
─ = MaleConnectorRight and FemaleConnectorLeft
=======
SOUNDS
=======
( Connectors connect )
SFX0 1607304
( Laser fires )
SFX1 99634701
( Something destroyed by laser )
SFX2 98139709
( Thruster moves ship )
SFX3 3708508
================
COLLISIONLAYERS
================
Background
Tug, Ship, Wall, FemaleConnector, Laser, Thruster
MaleConnector, Core
Connected
Powered
PreviouslyPowered
Number
LaserBeam
Thrusting
======
RULES
======
( Assign numbers to ships )
random [ no Ship no Number ] -> [ S1 ]
[ no Ship S1 ] [ Ship no Number ] -> [ ] [ Ship S1 ]
[ Red S1 | Red no Number ] -> [ Red S1 | Red S1 ]
[ Green S1 | Green no Number ] -> [ Green S1 | Green S1 ]
[ Pink S1 | Pink no Number ] -> [ Pink S1 | Pink S1 ]
[ Yellow S1 | Yellow no Number ] -> [ Yellow S1 | Yellow S1 ]
random [ no Ship no Number ] -> [ S2 ]
[ no Ship S2 ] [ Ship no Number ] -> [ ] [ Ship S2 ]
[ Red S2 | Red no Number ] -> [ Red S2 | Red S2 ]
[ Green S2 | Green no Number ] -> [ Green S2 | Green S2 ]
[ Pink S2 | Pink no Number ] -> [ Pink S2 | Pink S2 ]
[ Yellow S2 | Yellow no Number ] -> [ Yellow S2 | Yellow S2 ]
random [ no Ship no Number ] -> [ S3 ]
[ no Ship S3 ] [ Ship no Number ] -> [ ] [ Ship S3 ]
[ Red S3 | Red no Number ] -> [ Red S3 | Red S3 ]
[ Green S3 | Green no Number ] -> [ Green S3 | Green S3 ]
[ Pink S3 | Pink no Number ] -> [ Pink S3 | Pink S3 ]
[ Yellow S3 | Yellow no Number ] -> [ Yellow S3 | Yellow S3 ]
random [ no Ship no Number ] -> [ S4 ]
[ no Ship S4 ] [ Ship no Number ] -> [ ] [ Ship S4 ]
[ Red S4 | Red no Number ] -> [ Red S4 | Red S4 ]
[ Green S4 | Green no Number ] -> [ Green S4 | Green S4 ]
[ Pink S4 | Pink no Number ] -> [ Pink S4 | Pink S4 ]
[ Yellow S4 | Yellow no Number ] -> [ Yellow S4 | Yellow S4 ]
random [ no Ship no Number ] -> [ S5 ]
[ no Ship S5 ] [ Ship no Number ] -> [ ] [ Ship S5 ]
[ Red S5 | Red no Number ] -> [ Red S5 | Red S5 ]
[ Green S5 | Green no Number ] -> [ Green S5 | Green S5 ]
[ Pink S5 | Pink no Number ] -> [ Pink S5 | Pink S5 ]
[ Yellow S5 | Yellow no Number ] -> [ Yellow S5 | Yellow S5 ]
random [ no Ship no Number ] -> [ S6 ]
[ no Ship S6 ] [ Ship no Number ] -> [ ] [ Ship S6 ]
[ Red S6 | Red no Number ] -> [ Red S6 | Red S6 ]
[ Green S6 | Green no Number ] -> [ Green S6 | Green S6 ]
[ Pink S6 | Pink no Number ] -> [ Pink S6 | Pink S6 ]
[ Yellow S6 | Yellow no Number ] -> [ Yellow S6 | Yellow S6 ]
random [ no Ship no Number ] -> [ S7 ]
[ no Ship S7 ] [ Ship no Number ] -> [ ] [ Ship S7 ]
[ Red S7 | Red no Number ] -> [ Red S7 | Red S7 ]
[ Green S7 | Green no Number ] -> [ Green S7 | Green S7 ]
[ Pink S7 | Pink no Number ] -> [ Pink S7 | Pink S7 ]
[ Yellow S7 | Yellow no Number ] -> [ Yellow S7 | Yellow S7 ]
random [ no Ship no Number ] -> [ S8 ]
[ no Ship S8 ] [ Ship no Number ] -> [ ] [ Ship S8 ]
[ Red S8 | Red no Number ] -> [ Red S8 | Red S8 ]
[ Green S8 | Green no Number ] -> [ Green S8 | Green S8 ]
[ Pink S8 | Pink no Number ] -> [ Pink S8 | Pink S8 ]
[ Yellow S8 | Yellow no Number ] -> [ Yellow S8 | Yellow S8 ]
random [ no Ship no Number ] -> [ S9 ]
[ no Ship S9 ] [ Ship no Number ] -> [ ] [ Ship S9 ]
[ Red S9 | Red no Number ] -> [ Red S9 | Red S9 ]
[ Green S9 | Green no Number ] -> [ Green S9 | Green S9 ]
[ Pink S9 | Pink no Number ] -> [ Pink S9 | Pink S9 ]
[ Yellow S9 | Yellow no Number ] -> [ Yellow S9 | Yellow S9 ]
( Remove unused numbers )
[ Number no Ship ] -> [ ]
( Clear laser beams )
[ LaserBeam ] -> []
( Tug pushes things )
rigid up [ up Tug | Pushable no ThrustingVertical ] -> [ up Tug | up Pushable ]
+ rigid down [ down Tug | Pushable no ThrustingVertical ] -> [ down Tug | down Pushable ]
+ rigid left [ left Tug | Pushable no ThrustingHorizontal ] -> [ left Tug | left Pushable ]
+ rigid right [ right Tug | Pushable no ThrustingHorizontal ] -> [ right Tug | right Pushable ]
+ rigid [ stationary Tug ] [ ThrusterUp Powered ] -> [ Tug ] [ down ThrusterUp Powered ] again SFX3
+ rigid [ stationary Tug ] [ ThrusterDown Powered ] -> [ Tug ] [ up ThrusterDown Powered ] again SFX3
+ rigid [ stationary Tug ] [ ThrusterLeft Powered ] -> [ Tug ] [ right ThrusterLeft Powered ] again SFX3
+ rigid [ stationary Tug ] [ ThrusterRight Powered ] -> [ Tug ] [ left ThrusterRight Powered ] again SFX3
( Ship parts move together )
+ rigid [ orthogonal Ship S1 | stationary Ship S1 ] -> [ orthogonal Ship S1 | orthogonal Ship S1 ]
+ rigid [ orthogonal Ship S2 | stationary Ship S2 ] -> [ orthogonal Ship S2 | orthogonal Ship S2 ]
+ rigid [ orthogonal Ship S3 | stationary Ship S3 ] -> [ orthogonal Ship S3 | orthogonal Ship S3 ]
+ rigid [ orthogonal Ship S4 | stationary Ship S4 ] -> [ orthogonal Ship S4 | orthogonal Ship S4 ]
+ rigid [ orthogonal Ship S5 | stationary Ship S5 ] -> [ orthogonal Ship S5 | orthogonal Ship S5 ]
+ rigid [ orthogonal Ship S6 | stationary Ship S6 ] -> [ orthogonal Ship S6 | orthogonal Ship S6 ]
+ rigid [ orthogonal Ship S7 | stationary Ship S7 ] -> [ orthogonal Ship S7 | orthogonal Ship S7 ]
+ rigid [ orthogonal Ship S8 | stationary Ship S8 ] -> [ orthogonal Ship S8 | orthogonal Ship S8 ]
+ rigid [ orthogonal Ship S9 | stationary Ship S9 ] -> [ orthogonal Ship S9 | orthogonal Ship S9 ]
( Attachments move the ships they're on )
+ rigid up [ orthogonal AttachmentDown | stationary Ship ] -> [ orthogonal AttachmentDown | orthogonal Ship ]
+ rigid down [ orthogonal AttachmentUp | stationary Ship ] -> [ orthogonal AttachmentUp | orthogonal Ship ]
+ rigid left [ orthogonal AttachmentRight | stationary Ship ] -> [ orthogonal AttachmentRight | orthogonal Ship ]
+ rigid right [ orthogonal AttachmentLeft | stationary Ship ] -> [ orthogonal AttachmentLeft | orthogonal Ship ]
( Ships move attachments that're on them )
+ rigid up [ stationary AttachmentDown | orthogonal Ship ] -> [ orthogonal AttachmentDown | orthogonal Ship ]
+ rigid down [ stationary AttachmentUp | orthogonal Ship ] -> [ orthogonal AttachmentUp | orthogonal Ship ]
+ rigid left [ stationary AttachmentRight | orthogonal Ship ] -> [ orthogonal AttachmentRight | orthogonal Ship ]
+ rigid right [ stationary AttachmentLeft | orthogonal Ship ] -> [ orthogonal AttachmentLeft | orthogonal Ship ]
( Ships push ships they're not connected to )
+ rigid [ > Ship | stationary Ship ] -> [ > Ship | > Ship ]
( Ships push attachments they're not connected to )
+ rigid [ > Ship | stationary Attachment ] -> [ > Ship | > Attachment ]
( Attachments push ships they're not connected to )
+ rigid [ stationary Ship | < Attachment ] -> [ < Ship | < Attachment ]
( Male connectors push male connectors )
+ rigid [ > MaleConnector | stationary MaleConnector ] -> [ > MaleConnector | > MaleConnector ]
( Female connectors push female connectors )
+ rigid [ > FemaleConnector | stationary FemaleConnector ] -> [ > FemaleConnector | > FemaleConnector ]
( Connectors push differently-orientated connectors )
+ rigid [ > MaleConnectorUp | stationary FemaleConnectorNotDown ] -> [ > MaleConnectorUp | > FemaleConnectorNotDown ]
+ rigid [ > MaleConnectorDown | stationary FemaleConnectorNotUp ] -> [ > MaleConnectorDown | > FemaleConnectorNotUp ]
+ rigid [ > MaleConnectorLeft | stationary FemaleConnectorNotRight ] -> [ > MaleConnectorLeft | > FemaleConnectorNotRight ]
+ rigid [ > MaleConnectorRight | stationary FemaleConnectorNotLeft ] -> [ > MaleConnectorRight | > FemaleConnectorNotLeft ]
+ rigid [ > FemaleConnectorUp | stationary MaleConnectorNotDown ] -> [ > FemaleConnectorUp | > MaleConnectorNotDown ]
+ rigid [ > FemaleConnectorDown | stationary MaleConnectorNotUp ] -> [ > FemaleConnectorDown | > MaleConnectorNotUp ]
+ rigid [ > FemaleConnectorLeft | stationary MaleConnectorNotRight ] -> [ > FemaleConnectorLeft | > MaleConnectorNotRight ]
+ rigid [ > FemaleConnectorRight | stationary MaleConnectorNotLeft ] -> [ > FemaleConnectorRight | > MaleConnectorNotLeft ]
( Connectors push correctly-orientated connectors from wrong direction )
+ rigid vertical [ > MaleConnectorLeft | stationary FemaleConnectorRight ] -> [ > MaleConnectorLeft | > FemaleConnectorRight ]
+ rigid vertical [ > MaleConnectorRight | stationary FemaleConnectorLeft ] -> [ > MaleConnectorRight | > FemaleConnectorLeft ]
+ rigid horizontal [ > MaleConnectorUp | stationary FemaleConnectorDown ] -> [ > MaleConnectorUp | > FemaleConnectorDown ]
+ rigid horizontal [ > MaleConnectorDown | stationary FemaleConnectorUp ] -> [ > MaleConnectorDown | > FemaleConnectorUp ]
+ rigid vertical [ > FemaleConnectorLeft | stationary MaleConnectorRight ] -> [ > FemaleConnectorLeft | > MaleConnectorRight ]
+ rigid vertical [ > FemaleConnectorRight | stationary MaleConnectorLeft ] -> [ > FemaleConnectorRight | > MaleConnectorLeft ]
+ rigid horizontal [ > FemaleConnectorUp | stationary MaleConnectorDown ] -> [ > FemaleConnectorUp | > MaleConnectorDown ]
+ rigid horizontal [ > FemaleConnectorDown | stationary MaleConnectorUp ] -> [ > FemaleConnectorDown | > MaleConnectorUp ]
( Connectors push other attachments )
+ rigid [ > Connector | Laser ] -> [ > Connector | > Laser ]
+ rigid [ > Connector | Thruster ] -> [ > Connector | > Thruster ]
( Lasers push all attachments )
+ rigid [ > Laser | Attachment ] -> [ > Laser | > Attachment ]
( Thrusters push all attachments )
+ rigid [ > Thruster | Attachment ] -> [ > Thruster | > Attachment ]
( Pushables push stationary tug )
+ rigid [ > Pushable | stationary Tug ] -> [ > Pushable | > Tug ]
( Connectors move connected connectors )
+ [ orthogonal MaleConnector stationary FemaleConnector ] -> [ orthogonal MaleConnector orthogonal FemaleConnector ]
+ [ stationary MaleConnector orthogonal FemaleConnector ] -> [ orthogonal MaleConnector orthogonal FemaleConnector ]
( Connectors move connected connectors (if they're not disconnecting) )
(+ [ vertical MaleConnectorHorizontal FemaleConnectorHorizontal ] -> [ vertical MaleConnectorHorizontal vertical FemaleConnectorHorizontal ]
+ [ MaleConnectorHorizontal vertical FemaleConnectorHorizontal ] -> [ vertical MaleConnectorHorizontal vertical FemaleConnectorHorizontal ]
+ [ horizontal MaleConnectorVertical FemaleConnectorVertical ] -> [ horizontal MaleConnectorVertical horizontal FemaleConnectorVertical ]
+ [ MaleConnectorVertical horizontal FemaleConnectorVertical ] -> [ horizontal MaleConnectorVertical horizontal FemaleConnectorVertical ] )
[ > Pushable | Wall ] -> cancel
( Tug stops if it can't push )
[ > Tug | stationary Pushable ] -> [ Tug | Pushable ]
( Move numbers with ships )
[ moving Ship Number ] -> [ moving Ship moving Number ]
( Move cores with ships )
[ moving Ship Core ] -> [ moving Ship moving Core ]
( Keep Powered in sync )
[ Powered moving Pushable ] -> [ moving Powered moving Pushable ]
( Clear poweredness )
late [ PreviouslyPowered ] -> []
late [ Powered ] -> [ PreviouslyPowered ]
( Check poweredness )
late [ Core ] -> [ Powered Core ]
startloop
( Ship parts are always connected to each other )
late [ S1 Powered | S1 ] -> [ S1 Powered | S1 Powered ]
late [ S2 Powered | S2 ] -> [ S2 Powered | S2 Powered ]
late [ S3 Powered | S3 ] -> [ S3 Powered | S3 Powered ]
late [ S4 Powered | S4 ] -> [ S4 Powered | S4 Powered ]
late [ S5 Powered | S5 ] -> [ S5 Powered | S5 Powered ]
late [ S6 Powered | S6 ] -> [ S6 Powered | S6 Powered ]
late [ S7 Powered | S7 ] -> [ S7 Powered | S7 Powered ]
late [ S8 Powered | S8 ] -> [ S8 Powered | S8 Powered ]
late [ S9 Powered | S9 ] -> [ S9 Powered | S9 Powered ]
( Attachments backing onto powered ships are powered )
late up [ Powered Ship | AttachmentUp ] -> [ Powered Ship | Powered AttachmentUp ]
late down [ Powered Ship | AttachmentDown ] -> [ Powered Ship | Powered AttachmentDown ]
late left [ Powered Ship | AttachmentLeft ] -> [ Powered Ship | Powered AttachmentLeft ]
late right [ Powered Ship | AttachmentRight ] -> [ Powered Ship | Powered AttachmentRight ]
( Ships backing onto connected connectors are connected )
late up [ Ship | Powered ConnectorUp ] -> [ Powered Ship | Powered ConnectorUp ]
late down [ Ship | Powered ConnectorDown ] -> [ Powered Ship | Powered ConnectorDown ]
late left [ Ship | Powered ConnectorLeft ] -> [ Powered Ship | Powered ConnectorLeft ]
late right [ Ship | Powered ConnectorRight ] -> [ Powered Ship | Powered ConnectorRight ]
endloop
( Play sound when laser fires )
late [ Laser Powered no PreviouslyPowered ] -> SFX1
( Make new laser beams )
late up [ LaserUp Powered | no StopsLaserBeam ] -> [ LaserUp Powered | LaserBeamVertical ]
late down [ LaserDown Powered | no StopsLaserBeam ] -> [ LaserDown Powered | LaserBeamVertical ]
late left [ LaserLeft Powered | no StopsLaserBeam ] -> [ LaserLeft Powered | LaserBeamHorizontal ]
late right [ LaserRight Powered | no StopsLaserBeam ] -> [ LaserRight Powered | LaserBeamHorizontal ]
late up [ LaserUp Powered | ... | LaserBeamVertical | no StopsLaserBeam ] -> [ LaserUp Powered | ... | LaserBeamVertical | LaserBeamVertical ]
late down [ LaserDown Powered | ... | LaserBeamVertical | no StopsLaserBeam ] -> [ LaserDown Powered | ... | LaserBeamVertical | LaserBeamVertical ]
late left [ LaserLeft Powered | ... | LaserBeam | no StopsLaserBeam ] -> [ LaserLeft Powered | ... | LaserBeamHorizontal | LaserBeamHorizontal ]
late right [ LaserRight Powered | ... | LaserBeam | no StopsLaserBeam ] -> [ LaserRight Powered | ... | LaserBeamHorizontal | LaserBeamHorizontal ]
( Destroy things with laser beams )
late [ Attachment LaserBeam ] -> [ LaserBeam ] SFX2
(late [ Tug LaserBeam ] -> [ LaserBeam ] SFX2)
( Clearing thrusting markers )
late [ Thrusting ] -> []
( Make new thrusting markers )
late [ ThrusterVertical Powered ] -> [ ThrusterVertical Powered ThrustingVertical ]
late [ ThrusterHorizontal Powered ] -> [ ThrusterHorizontal Powered ThrustingHorizontal ]
( Flood-fill to connected pieces )
late [ Powered Thrusting | Powered no Thrusting ] -> [ Powered Thrusting | Powered Thrusting ]
( Make a noise when connecting connectors )
[ MaleConnector FemaleConnector ] -> [ MaleConnector FemaleConnector Connected ]
[ moving Connector Connected ] -> [ moving Connector moving Connected ]
late [ MaleConnector FemaleConnector no Connected ] -> SFX0
( Clear connectedness )
late [ Connected ] -> []
( Check connectedness )
late [ Core ] -> [ Connected Core ]
( Ship parts are always connected to each other )
late [ S1 Connected | S1 ] -> [ S1 Connected | S1 Connected ]
+ late [ S2 Connected | S2 ] -> [ S2 Connected | S2 Connected ]
+ late [ S3 Connected | S3 ] -> [ S3 Connected | S3 Connected ]
+ late [ S4 Connected | S4 ] -> [ S4 Connected | S4 Connected ]
+ late [ S5 Connected | S5 ] -> [ S5 Connected | S5 Connected ]
+ late [ S6 Connected | S6 ] -> [ S6 Connected | S6 Connected ]
+ late [ S7 Connected | S7 ] -> [ S7 Connected | S7 Connected ]
+ late [ S8 Connected | S8 ] -> [ S8 Connected | S8 Connected ]
+ late [ S9 Connected | S9 ] -> [ S9 Connected | S9 Connected ]
( Ships connected to ships of the same colour are connected )
+ late [ Connected Red | FemaleConnector MaleConnector | Red ] -> [ Connected Red | FemaleConnector MaleConnector | Connected Red ]
+ late [ Connected Green | FemaleConnector MaleConnector | Green ] -> [ Connected Green | FemaleConnector MaleConnector | Connected Green ]
+ late [ Connected Pink | FemaleConnector MaleConnector | Pink ] -> [ Connected Green | FemaleConnector MaleConnector | Connected Pink ]
+ late [ Connected Yellow | FemaleConnector MaleConnector | Yellow ] -> [ Connected Yellow | FemaleConnector MaleConnector | Connected Yellow ]
==============
WINCONDITIONS
==============
All Ship on Connected
=======
LEVELS
=======
(.........
....┴....
...┤ṙ├...
....┬....
..▓.@.▓..
....╨....
...╡g╞...
....╥....
.........)
▒.....▒
▒..r.┤r
r├╡r╞.╥
╥..ṙ..▒
▓.....▓
▒..@..▓
.╨..╨..
╡r├╡r├.
.┬..┬..
.╨.▓╨..
╡r├╡ṙ├.
.┬..┬..
......@
(...▓.........
.┴...........
┤r├......▓...
...▓╡rṙr╞▓...
...▓......┤r├
......@....┬.
.........▓...)
rrr.▒
┬.╥..
..┴..
r├r.@
╥╡ṙ╞.
..╥..
▒...▓
......▒
┤rr╞┤ṙ.
.r...┬.
.┬┤r╞╨.
.....r.
.@.┤rr╞
.......
▒.....▒
.......
.┤r.ṙ╞.
.▓│@│▓.
.╡r.r├.
.......
▒.....▒
(...▓...
..┴.╨..
.╡ṙ.r├.
▒..@..▒
.┤r.r╞.
..╥.┬..
...▓...)
▓.....▓
...╨┤r.
.┴╡ṙ╞┬.
.r├╥.@.
▓..▓..▓
.┴......
┤ġg╞....
.g......
.╥ṙ╞┤r┴.
......g.
.@..┤gg╞
......╥.
.┴....▓
╡ġg╞.@.
.┬┤ṙ╞╨.
.╨.┤gg.
.r╞....
▓.....▓
▓.....
.╨r▶@.
.ġ┬.┴.
.g╨┤g├
.╥ṙ.┬.
......
▒.....
......
.╡r←..
.╨┬.╨.
╡ṙ╞╡r├
.╥..╥.
..@...
.╨.....
ġg╞....
.│..┴..
.g←.rr╞
....╨┬.
.@.╡ṙ╞.
....╥..
(.....
.ġ├╡ṙ
.g.▓╥
.┬.▓┴
.@.╡r
....╥
...↓┴
...rr
.....)
(.............
.............
.┤rrr╞┤rr.r╞.
........r.ṙ.@
.┤rr╞..┤r.r╞.
.............
.............)
(....┴.▓
...rr..
..╡gg..
╨..g@..
p├.rr..
pp.┬...
.╥.....)
(...........
...........
..ṗpp═ppp..
..pg╞.┤gp..
..p┬.╨.╥p..
..║.╡ṙ╞.│..
..p╨.╥.┴p..
..pg├.╡gp..
..ppp.ppp..
...........
.....@.....)
(.........
..ṙ├.╡r..
..╥┴.╨┬..
...r═r...
...r@r...
...r─r...
..┴╥.┬╨..
..r╞.┤r..
.........)
(.......
.▓┴.┴▓.
.┤r═r├.
.▓┬.┬▓.
.......
...@...
.↓...╨.
.r├.╡ṙ╞
.....╥.)
(.......
.......
.......
.......
.......
.......
..rrr..
..▼┬▼..
...╨...
...ṙ...)
(g├╡ġg..
┬..╥...
...┴...
...g▶..
▒▒▒r▒▒▒
...║...
.@╡ṙ╞..
...╥...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment