Created
April 15, 2023 20:01
-
-
Save david-crespo/5f17b1f554e04900d03698faedf5fd0a to your computer and use it in GitHub Desktop.
Light Lines (PuzzleScript Script)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title Light Lines | |
author David Crespo | |
homepage www.puzzlescript.net | |
( debug ) | |
======== | |
OBJECTS | |
======== | |
Background | |
purple | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
Wall | |
brown darkbrown | |
00010 | |
11111 | |
01000 | |
11111 | |
00010 | |
Wire | |
gray blue | |
.010. | |
00100 | |
11111 | |
00100 | |
.010. | |
LiveWire | |
gray blue lightblue | |
.010. | |
00100 | |
11211 | |
00100 | |
.010. | |
LitWire | |
gray lightblue | |
.010. | |
00100 | |
11111 | |
00100 | |
.010. | |
Player | |
black orange gray blue yellow | |
11411 | |
.444. | |
43334 | |
.333. | |
.3.3. | |
Light | |
gray darkgray | |
00100 | |
01110 | |
11111 | |
01110 | |
00100 | |
Lit | |
gray white | |
00100 | |
01110 | |
11111 | |
01110 | |
00100 | |
======= | |
LEGEND | |
======= | |
. = Background | |
# = Wall | |
P = Player | |
O = Light | |
* = Lit | |
+ = Wire | |
======= | |
SOUNDS | |
======= | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Player, Wall, Light, Lit, Wire, LiveWire, LitWire | |
====== | |
RULES | |
====== | |
[ Lit ] -> [ Light ] | |
[ LitWire ] -> [ Wire ] | |
[ LiveWire ] -> [ Wire ] | |
( wires are pushable ) | |
[ > Player | Wire ] -> [ > Player | > Wire ] | |
( Loop needed to get through chains of light-wire-light-wire-light ) | |
startloop | |
late [ Player | Light ] -> [ Player | Lit ] | |
late [ Lit | Light ] -> [ Lit | Lit ] | |
late [ Lit | Wire ] -> [ Lit | LiveWire ] | |
late [ LiveWire | Wire ] -> [ LiveWire | LiveWire ] | |
late [ LiveWire | Light ] -> [ LiveWire | Lit ] | |
late [ LitWire | Light ] -> [ LitWire | Lit ] | |
endloop | |
( problem: this only works for lights on opposite sides, not two adjacent sides ) | |
late [ Lit | LiveWire | Lit ] -> [ Lit | LitWire | Lit ] | |
( Ideas/Questions: | |
- should player touching a wire work like touching a light, or should player have to touch a light directly? | |
- Idea: Lights that can only be connected from certain sides: LightL, LightUR, etc. | |
- Trigger lights the player can light by touching, other lights can't be triggered | |
- Those two ideas combine well: the player can only light a light from a side with an exposed wire. That means only lights with more than one exposed wire are any use to the player for touching directly | |
- Separate stationary from being light or a wire? Eh, I kind of like it. Wires: you can't light them directly, and you can move them. That's it. | |
) | |
============== | |
WINCONDITIONS | |
============== | |
No Light | |
======= | |
LEVELS | |
======= | |
message light all the lights! | |
...... | |
.p.... | |
...... | |
...... | |
..o... | |
...... | |
...... | |
....o. | |
.p..o. | |
....o. | |
...... | |
...... | |
...... | |
....o. | |
.p.... | |
....o. | |
...... | |
...... | |
...... | |
....o. | |
.p.... | |
....o. | |
...+.. | |
....o. | |
...... | |
....o. | |
.p..+. | |
...... | |
.+..+. | |
....o. | |
...... | |
........ | |
........ | |
.p..ooo. | |
......o. | |
...oo... | |
...oo... | |
.o....o. | |
.oo.ooo. | |
........ | |
........ | |
....ooo. | |
.p..o... | |
....o.+. | |
........ | |
....o... | |
.oooo... | |
o....... | |
oooo.... | |
............. | |
.p.oooo..ooo. | |
...o..oo.+... | |
..+....ooo... | |
.oooo....+... | |
.o....oooo... | |
.o....+...... | |
oo.o+oo...... | |
o..o..o...... | |
o.ooo.oo..... | |
.......o..... | |
.ooo+ooo..... | |
............. | |
message nice |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment