Skip to content

Instantly share code, notes, and snippets.

@Brin-o
Created November 12, 2021 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Brin-o/936768bd1c1948c7d6b44fa571782dea to your computer and use it in GitHub Desktop.
Save Brin-o/936768bd1c1948c7d6b44fa571782dea to your computer and use it in GitHub Desktop.
Goodnight Robot (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Goodnight Robot
author Brin
homepage www.puzzlescript.net
again_interval 0.3
========
OBJECTS
========
Background
purple
Target
DarkBlue
.....
.000.
.0.0.
.000.
.....
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
PlayerMoving
red Orange White Blue
.000.
00000
01010
00000
1...1
PlayerDead
red Orange
00000
10001
01110
00000
11111
Crate
Orange
00000
0...0
0...0
0...0
00000
BadFloor
purple blue
00000
01010
00100
01010
00000
DirTarget
blue
00.00
0...0
.....
0...0
00.00
DirLeft
RED
.....
.0...
0000.
.0...
.....
DirRight
RED
.....
...0.
.0000
...0.
.....
DirUp
RED
..0..
.000.
..0..
..0..
.....
DirDown
RED
.....
..0..
..0..
.000.
..0..
DeathCounter
RED
0...0
.0.0.
..0..
.0.0.
0...0
=======
LEGEND
=======
. = Background
# = Wall
P = PlayerMoving
* = Crate
@ = Crate and Target
O = Target
- = BadFloor
X = DirTarget
L = DirLeft
R = DirRight
U = DirUp
D = DirDown
F = DeathCounter
Directional = DirUp or DirDown or DirLeft or DirRight
Player = PlayerMoving or PlayerDead
=======
SOUNDS
=======
Crate MOVE 36772507
================
COLLISIONLAYERS
================
Background
Target, BadFloor
Player, Wall, Crate
DirTarget
Directional, DeathCounter
======
RULES
======
( DEATH )
late [PlayerMoving BadFloor ] -> [ PlayerDead BadFloor ]
[PlayerDead BadFloor ] -> restart message You died!
( DEATH TIMELINE)
late random left [DeathCounter | no Directional] -> [ | DeathCounter]
[DeathCounter DirTarget ] [moving Player ] -> [ DirTarget ] [ PlayerDead ]
( DIRECTIONAL MOVEMENT MACHINE )
late random left [DirLeft | no Directional] -> [ | DirLeft]
late random left [DirRight | no Directional] -> [ | DirRight]
late random left [DirUp | no Directional] -> [ | DirUp]
late random left [DirDown | no Directional] -> [ | DirDown]
[DirLeft DirTarget ] [moving Player ] -> [ DirTarget ] [ left Player ]
[DirRight DirTarget ] [moving Player ] -> [ DirTarget ] [ right Player ]
[DirUp DirTarget ] [moving Player ] -> [ DirTarget ] [ up Player ]
[DirDown DirTarget ] [moving Player ] -> [ DirTarget ] [ down Player ]
==============
WINCONDITIONS
==============
All Player on Target
=======
LEVELS
=======
................
................
................
.......----.....
.......-o.-.....
.......--.--....
.......--..-....
..------...-....
..-p.......-....
..----.-----....
.....-.-........
.....---........
................
x...u...d..r.l.f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment