Skip to content

Instantly share code, notes, and snippets.

@thacuber2a03
Created February 11, 2021 20:22
Show Gist options
  • Select an option

  • Save thacuber2a03/88c7acfa3298dbc8e54cc6e093dbf632 to your computer and use it in GitHub Desktop.

Select an option

Save thacuber2a03/88c7acfa3298dbc8e54cc6e093dbf632 to your computer and use it in GitHub Desktop.
Puzzle Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Puzzle Game
author Aaron Parfait
homepage www.puzzlescript.net
Background_Color DarkBlue
Text_Color Yellow
Realtime_Interval 0.2
Throttle_Movement
Key_Repeat_Interval 0.2
require_player_movement
noundo
========
OBJECTS
========
Background
darkblue
Goal
red
.....
.0.0.
..0..
.0.0.
.....
Spawn
Red White
.111.
11011
10001
11011
.111.
YellowTarget
white yellow
.000.
0...0
0.1.0
0...0
.000.
BlueTarget
white Blue
.000.
0...0
0.1.0
0...0
.000.
GreyTarget
White grey
.000.
0.1.0
01110
0.1.0
.000.
Wall
#0f181f lightblue
.1111
0...1
0...1
0...1
0000.
Player
White
.....
.....
.....
.....
.....
PlayerStand
red DarkBlue
.000.
00000
01010
00000
00.00
PlayerRight
red DarkBlue
.000.
00000
01010
00000
...00
PlayerLeft
red DarkBlue
.000.
00000
01010
00000
00...
PlayerDead
White
.....
.....
.....
.....
.....
YellowBall
yellow white
.000.
00010
00000
00000
.000.
BlueBall
Blue White
.000.
00010
00000
00000
.000.
BlueSplat1
Blue
.....
.000.
.000.
.000.
.....
BlueSplat2
Blue
.....
.....
..0..
.....
.....
YellowSplat1
Yellow
.....
.000.
.000.
.000.
.....
YellowSplat2
Yellow
.....
.....
..0..
.....
.....
YellowDoor
Yellow orange
.101.
01010
01010
01010
01010
YellowOpenDoor
Yellow
0...0
.....
.....
.....
0...0
BlueDoor
Blue Purple
.101.
01010
01010
01010
01010
BlueOpenDoor
Blue
0...0
.....
.....
.....
0...0
GreyDoor
Grey DarkGrey
.101.
01010
01010
01010
01010
GreyOpenDoor
Grey
0...0
.....
.....
.....
0...0
GreyBridge
DarkGrey Grey
01010
11111
01010
11111
01010
GreyOpenBridge
grey black
11011
11111
01110
11111
11011
YellowBridge
orange yellow
01010
11111
01010
11111
01010
YellowOpenBridge
yellow black
11011
11111
01110
11111
11011
JumperStill
lightGreen Green white
.....
.000.
00020
01010
00000
JumperJump1
lightGreen white
.....
.....
.000.
00010
00000
JumperJump2
lightGreen Green
.000.
01010
00000
.000.
.....
JumperJump3
lightGreen white
.....
.....
.000.
00010
00000
GreenSplat1
LightGreen
.....
.000.
.000.
.000.
.....
GreenSplat2
LightGreen
.....
.....
..0..
.....
.....
RedSplat1
Red
.....
.000.
.000.
.000.
.....
RedSplat2
Red
.....
.....
..0..
.....
.....
ButtonOff
Grey Red
00000
01110
01110
01110
00000
ButtonClick
Grey DarkRed
00000
01110
01110
01110
00000
ButtonOn
Grey DarkRed
00000
01110
01110
01110
00000
WireSetup
DarkRed
.....
.....
..0..
.....
.....
WireVOff
DarkRed
..0..
..0..
..0..
..0..
..0..
WireHOff
DarkRed
.....
.....
00000
.....
.....
WireLDOff
DarkRed
.....
.....
0....
.0...
..0..
WireLUOff
DarkRed
..0..
.0...
0....
.....
.....
WireRDOff
DarkRed
.....
.....
....0
...0.
..0..
WireRUOff
DarkRed
..0..
...0.
....0
.....
.....
WireTUOff
DarkRed
..0..
..0..
00000
.....
.....
WireTROff
DarkRed
..0..
..0..
..000
..0..
..0..
WireTLOff
DarkRed
..0..
..0..
000..
..0..
..0..
WireTDOff
DarkRed
.....
.....
00000
..0..
..0..
WireXOff
DarkRed
..0..
..0..
00000
..0..
..0..
WireVOn
Red
..0..
..0..
..0..
..0..
..0..
WireHOn
Red
.....
.....
00000
.....
.....
WireLDOn
Red
.....
.....
0....
.0...
..0..
WireLUOn
Red
..0..
.0...
0....
.....
.....
WireRDOn
Red
.....
.....
....0
...0.
..0..
WireRUOn
Red
..0..
...0.
....0
.....
.....
WireTUOn
Red
..0..
..0..
00000
.....
.....
WireTROn
Red
..0..
..0..
..000
..0..
..0..
WireTLOn
Red
..0..
..0..
000..
..0..
..0..
WireTDOn
Red
.....
.....
00000
..0..
..0..
WireXOn
Red
..0..
..0..
00000
..0..
..0..
WireVClick
Red DarkRed
..1..
..0..
..1..
..0..
..1..
WireHClick
Red DarkRed
.....
.....
10101
.....
.....
WireLDClick
Red DarkRed
.....
.....
1....
.0...
..1..
WireLUClick
Red DarkRed
..1..
.0...
1....
.....
.....
WireRDClick
Red DarkRed
.....
.....
....1
...0.
..1..
WireRUClick
Red DarkRed
..1..
...0.
....1
.....
.....
WireTUClick
Red DarkRed
..1..
..0..
10101
.....
.....
WireTRClick
Red DarkRed
..1..
..0..
..101
..0..
..1..
WireTLClick
Red DarkRed
..1..
..0..
101..
..0..
..1..
WireTDClick
Red DarkRed
.....
.....
10101
..0..
..1..
WireXClick
Red DarkRed
..1..
..0..
10101
..0..
..1..
BYFlipOff
Grey Blue Yellow DarkRed
00000
13032
11022
13032
00000
BYFlipOn
Grey Blue Yellow Red
00000
13032
11022
13032
00000
WireWall
Grey DarkGrey LightGrey
02222
10002
10002
10002
11110
PushWireOff
Grey DarkRed
.010.
00000
10001
00000
.010.
PushWireClick
Grey Red
.010.
00000
10001
00000
.010.
PushWireOn
Grey Red
.010.
00000
10001
00000
.010.
MachineBase
Grey DarkGrey Black lightGrey
03333
10013
10003
12213
11110
LaserBase
Red
..0..
..0..
00.00
..0..
..0..
LaserDOff
DarkRed
..0..
..0..
.....
.....
.....
MachineLaserDOff
Grey DarkGrey Black DarkRed LightGrey
04444
10204
10104
10000
.131.
LaserDOn
Red
..0..
..0..
.....
.....
.....
MachineLaserDOn
Grey DarkGrey White Red LightGrey
04444
10204
10404
10000
.131.
ClickerOff
Grey DarkGrey LightGrey DarkRed Black
02322
10402
34043
10402
11310
ClickerClick
Grey DarkGrey LightGrey Red White
02322
10402
34043
10402
11310
Laserv
White
..0..
..0..
..0..
..0..
..0..
LaserH
White
.....
.....
00000
.....
.....
TileFloor
#3f484f #bfc8cf
01110
10001
10001
10001
01110
GreyFloor
#3f484f
Dust1
DarkGrey
.....
.....
.....
.....
.....
Dust2
darkGrey
.....
.....
..0..
.....
.....
dust3
DarkGrey
.....
..0..
.000.
..0..
.....
TilerO
Black
.....
.....
..0..
.....
.....
TilerV
Black
.....
..0..
..0..
..0..
.....
TilerH
Black
.....
.....
.000.
.....
.....
OffSpace
Black
.....
.....
.....
.....
.....
Pit
Black
=======
LEGEND
=======
PlayerWalk = playerRight or PlayerLeft
PlayerAnim = PlayerStand or PlayerWalk or PlayerDead
. = Background
# = Wall
P = Player and PlayerStand
L = Spawn and Player and PlayerStand
* = YellowBall
B = BlueBall
0 = YellowTarget
D = YellowDoor
Q = BlueTarget
A = BlueDoor
x = Goal
_ = Pit
G = GreyTarget
+ = GreyOpenBridge
E = GreyDoor
- = YellowOpenBridge
J = JumperStill
W = WireXOff
U = ButtonOff
$ = BYFlipOff
% = WireWall and WireXOff
M = PushWireOff
, = TileFloor and TilerO
" = GreyFloor and TilerH
: = GreyFloor and TilerV
T = MachineBase
s = LaserBase
C = ClickerOff
WireOFF = WireVOff or WireHOff or WireLUoff or WireLDOff or WireRUOff or WireRDOff or WireTUOff or WireTLOff or WireTDOff or WireTROff or WireXOff
WireClick = WireVClick or WireHClick or WireLUClick or WireLDClick or WireRUClick or WireRDClick or WireTUClick or WireTLClick or WireTDClick or WireTRClick or WireXClick
WireOn = WireVOn or WireHOn or WireLUon or WireLDOn or WireRUOn or WireRDOn or WireTUOn or WireTLOn or WireTDOn or WireTROn or WireXOn
Wire = wireoff or WireClick or WireOn or WireSetUp
WireCorner = WireLDOff or WireLUOff or WireRDOff or WireRUOff
Button = ButtonOff or ButtonClick or ButtonOn
BYFlip = BYFlipOff or BYFlipOn
PushWire = PushWireOff or PushWireOn or PushWireClick
Laser = LaserBase or LaserDOff or LaserDOn
LaserMachine = MachineLaserDOff or MachineLaserDOn
Clicker = ClickerClick or ClickerOff
Machine = MachineBase or LaserMachine or Clicker
Electronics = Wire or Button or BYFlip or GreyDoor or PushWire or Machine
Projectile = LaserH or LaserV
Off = WireOff or ButtonOff or PushWireOff or offspace or ClickerOff
Click = WireClick or ButtonClick or PushWireClick or ClickerClick
On = WireOn or ButtonOn or PushWireOn
Powered = Click or On
Dust = dust1 or dust2 or dust3
Jumper = JumperStill or JumperJump1 or JumperJump2 or JumperJump3
Door = YellowDoor or BlueDoor or GreyDoor
OpenDoor = YellowOpenDoor or BlueOpenDoor or GreyOpenDoor
Bridge = YellowBridge or GreyBridge
Hole = Pit or GreyOpenBridge or YellowOpenBridge
Obstacle = Wall or Door or WireWall or Machine
Path = YellowOpenDoor or Bridge or OpenDoor
Ball = YellowBall or BlueBall
Decoration = YellowSplat1 or YellowSplat2 or BlueSplat1 or BlueSplat2 or GreenSplat1 or GreenSplat2 or RedSplat1 or RedSplat2 or Projectile or Dust
Target = YellowTarget or GreyTarget or BlueTarget
Alive = Player or Jumper
Heavy = Player or Ball
Pushable = Heavy or Jumper or PushWire
Deflect = Obstacle or Ball
HighDecoration = Laser
floor = TileFloor or GreyFloor
Tiler = TilerO or TilerV or TilerH
Worker = Tiler
TileLayer = Hole or Floor or WireWall
=======
SOUNDS
=======
Ball Move 90418908
PushWire Move 36124708
Player Create 22707708
JumperJump2 Move 28627108
Jumper CantMove 77077708
Heavy Destroy 72508308
BYFlipOff Destroy 30724508
ButtonOff Destroy 78172708
LaserH Create 66072108
Laserv Create 66072108
EndLevel 17837108
================
COLLISIONLAYERS
================
Background
Hole, WireWall, Floor
Target, Goal, Path, Electronics, Spawn
Decoration
Tiler, OffSpace
Alive, Wall, Pushable, Door, Machine
PlayerAnim
HighDecoration, Laser
======
RULES
======
Vertical [TilerV GreyFloor | No TileLayer No Obstacle] -> [GreyFloor TilerV | GreyFloor TilerV]
Horizontal [TilerH GreyFloor | No TileLayer No Obstacle] -> [GreyFloor TilerH | GreyFloor TilerH]
[TilerO TileFloor | No TileLayer No Obstacle] -> [TileFloor TilerO | TileFloor TilerO]
[Tiler] -> []
[LaserV] -> []
down [MachineBase | LaserBase] -> [MachineLaserDOff | LaserDOff]
[PlayerDead][Spawn] -> [ ][Spawn Player PlayerStand]
Late [PlayerRight | Player] -> [ | PlayerLeft Player dust1]
Late [PlayerLeft | Player] -> [ | PlayerRight Player dust1]
Late [PlayerStand | Player] -> [ | PlayerRight Player dust1]
Late [player No Dust][PlayerWalk] -> [Player][PlayerStand]
late[PlayerStand | Player] -> [ | PlayerStand Player]
late[No Player | No Player PlayerAnim] -> [No Player | No Player PlayerDead]
[WireSetUp | Electronics] -> [WireXOff | Electronics]
Horizontal [WireVOff | Electronics] -> [WireXOff | Electronics]
Vertical [WireHOff | Electronics] -> [WireXOff | Electronics]
[Electronics | WireCorner | Electronics] -> [Electronics | WireXOff | Electronics]
Horizontal [NO Electronics | WireXOff | NO Electronics] -> [ NO Electronics | WireVOff | NO Electronics]
Vertical [NO Electronics | WireXOff | NO Electronics] -> [NO Electronics | WireHOff | NO Electronics]
Up [WireXoff | No Electronics] -> [WireTDOff | No Electronics]
Down [WireXoff | No Electronics] -> [WireTUOff | No Electronics]
Right [WireTDoff | No Electronics] -> [WireLDOff | No Electronics]
Right [WireTUoff | No Electronics] -> [WireLUOff | No Electronics]
Left [WireTDoff | No Electronics] -> [WireRDOff | No Electronics]
Left [WireTUoff | No Electronics] -> [WireRUOff | No Electronics]
Right [WireXoff | No Electronics] -> [WireTLOff | No Electronics]
Left [WireXoff | No Electronics] -> [WireTROff | No Electronics]
Down [WireTLOff | No Electronics] -> [WireLUOff | No Electronics]
Down [WireTROff | No Electronics] -> [WireRUOff | No Electronics]
Up [WireTLOff | No Electronics] -> [WireLDOff | No Electronics]
Up [WireTROff | No Electronics] -> [WireRDOff | No Electronics]
Right [WireRUOff | No Electronics] -> [WireVOff | No Electronics]
Right [WireRdOff | No Electronics] -> [WireVOff | No Electronics]
Left [WirelUOff | No Electronics] -> [WireVOff | No Electronics]
Left [WireldOff | No Electronics] -> [WireVOff | No Electronics]
Down [WireLdOff | No Electronics] -> [WireHOff | No Electronics]
Down [WireRdOff | No Electronics] -> [WireHOff | No Electronics]
Up [WirelUOff | No Electronics] -> [WireHOff | No Electronics]
Up [WireRUOff | No Electronics] -> [WireHOff | No Electronics]
Vertical [No Electronics | WireVOff | No Electronics] -> [No Electronics | WireSetUp | No Electronics]
Horizontal [No Electronics | WireHOff | No Electronics] -> [No Electronics | WireSetUp | No Electronics]
up [WireTDOff | Electronics] -> [WireXOff | Electronics]
down [WireTUOff | Electronics] -> [WireXOff | Electronics]
Left [WireTROff | Electronics] -> [WireXOff | Electronics]
Right [WireTLOff | Electronics] -> [WireXOff | Electronics]
[ButtonOn NO Heavy] -> [ButtonOff No Heavy]
[ButtonClick] -> [ButtonOn]
[ButtonOff Heavy] -> [ButtonClick Heavy]
[WireHOn | off] -> [WireHOff | off]
[WireHClick] -> [WireHOn]
[wireHOff | Click] -> [WireHClick | Click]
[WireVOn | off] -> [WireVOff | off]
[WireVClick] -> [WireVOn]
[wireVOff | Click] -> [WireVClick | Click]
[WireLUOn | off] -> [WireLUOff | off]
[WireLUClick] -> [WireLUOn]
[wireLUOff | Click] -> [WireLUClick | Click]
[WireRUOn | off] -> [WireRUOff | off]
[WireRUClick] -> [WireRUOn]
[wireRUOff | Click] -> [WireRUClick | Click]
[WireLDOn | off] -> [WireLDOff | off]
[WireLDClick] -> [WireLDOn]
[wireLDOff | Click] -> [WireLDClick | Click]
[WireRDOn | off] -> [WireRDOff | off]
[WireRDClick] -> [WireRDOn]
[wireRDOff | Click] -> [WireRDClick | Click]
[WireXOn | off] -> [WireXOff | off]
[WireXClick] -> [WireXOn]
[wireXOff | Click] -> [WireXClick | Click]
[WireTUOn | off] -> [WireTUOff | off]
[WireTUClick] -> [WireTUOn]
[wireTUOff | Click] -> [WireTUClick | Click]
[WireTDOn | off] -> [WireTDOff | off]
[WireTDClick] -> [WireTDOn]
[wireTDOff | Click] -> [WireTDClick | Click]
[WireTROn | off] -> [WireTROff | off]
[WireTRClick] -> [WireTROn]
[wireTROff | Click] -> [WireTRClick | Click]
[WireTLOn | off] -> [WireTLOff | off]
[WireTLClick] -> [WireTLOn]
[wireTLOff | Click] -> [WiretlClick | Click]
[PushWireOn | off] -> [PushWireOff | off]
[PushWireClick] -> [PushWireOn]
[PushwireOff | Click] -> [PushWireClick | Click]
[BYFlipOn] -> [BYFlipOff]
[BYFlipOff | Click] -> [BYFlipOn | Click]
[BYFlipOn BlueBall] -> [BYFlipOff YellowBall]
[BYFlipOn YellowBall] -> [BYFlipOff BlueBall]
[MachineLaserDOn] -> [MachineLaserDOff]
[MachineLaserDOff | Click] -> [MachineLaserDOn | Click]
[LaserDOn] -> [LaserDOff]
up [LaserDOff | MachineLaserDOn] -> [LaserDOn LaserV | MachineLaserDOn]
Vertical [LaserV | No Obstacle] -> [LaserV | LaserV]
[LaserV Alive] -> [LaserV]
[Offspace] -> []
[ > Alive | PushWireOn] -> [> Alive OffSpace | > PushWireOff]
[ > Alive | Pushable ] -> [ > Alive | > Pushable ]
[ > Pushable | Pushable ] -> [ > Pushable | > Pushable ]
[ > Alive | Obstacle ] -> [ Alive | Obstacle ]
[ > Pushable | Obstacle ] -> [ Pushable | Obstacle ]
[No GreyTarget][GreyOpenDoor no Pushable | NO Powered] -> [][GreyDoor | ]
[No GreyTarget][GreyDoor | Powered] -> [No GreyTarget][GreyOpenDoor | Powered]
[GreyTarget][GreyDoor] -> [GreyTarget][GreyOpenDoor]
[YellowTarget YellowBall] [YellowDoor] -> [YellowTarget YellowBall] [YellowOpenDoor]
late [YellowTarget NO YellowBall] [YellowOpenDoor no Pushable ] -> [YellowTarget] [YellowDoor]
[YellowTarget YellowBall] [YellowOpenBridge] -> [YellowTarget YellowBall] [YellowBridge]
late [YellowTarget NO YellowBall] [YellowBridge] -> [YellowTarget NO YellowBall] [YellowOpenBridge]
[GreyTarget Ball] [GreyDoor] -> [GreyTarget Ball] [GreyOpenDoor]
late [GreyTarget NO Ball] [GreyOpenDoor no Pushable ] -> [GreyTarget] [GreyDoor]
[GreyTarget Ball] [GreyOpenBridge] -> [GreyTarget Ball] [GreyBridge]
late [GreyTarget NO Ball] [GreyBridge] -> [GreyTarget NO Ball] [GreyOpenBridge]
[BlueTarget BlueBall] [BlueDoor] -> [BlueTarget BlueBall] [BlueOpenDoor]
late [BlueTarget NO BlueBall] [BlueOpenDoor no Pushable] -> [BlueTarget] [BlueDoor]
[YellowSplat2] -> []
[YellowSplat1] -> [YellowSplat2]
[YellowBall Hole] -> [YellowSplat1 Hole]
[BlueSplat2] -> []
[BlueSplat1] -> [BlueSplat2]
[BlueBall Hole] -> [BlueSplat1 Hole]
[GreenSplat2] -> []
[GreenSplat1] -> [GreenSplat2]
[JumperStill Hole] -> [GreenSplat1 Hole]
[RedSplat2] -> []
[RedSplat1] -> [RedSplat2]
[Player Hole] -> [RedSplat1 Hole]
[Dust3] -> []
[Dust2] -> [dust3]
[Dust1] -> [Dust2]
[JumperJump2] -> [JumperJump3]
[JumperJump1 | ... | Player] -> [ GreenSplat1 > JumperJump2 | ... | Player]
[JumperJump1 | ... | NO Player] -> [ JumperStill | ... | NO Player]
[JumperStill | ... | Player] -> [ JumperJump1 | ... | Player]
[JumperJump3] ->[JumperStill]
[ > Alive | Jumper] -> [> Alive | GreenSplat1 > JumperJump3]
[ > Jumper | Player] -> [ > Jumper | > Player]
==============
WINCONDITIONS
==============
all Goal on Player
=======
LEVELS
=======
#######....
#.....#####
#.*.0.#...#
#..P..D.x.#
#.*.0.#...#
#.....#####
#######....
############
#_______.x.#
#.....__...#
#..L..___-_#
#..*.._....#
#..g..+.B0.#
#....._....#
############
################
#j.j#....#..j..#
#.*.#.j*.#..x..#
#...#....#.....#
#...##a#####e###
##d##.....__+__#
#...#..Q.._...g#
#......L..-.j..#
#.b.#..0.._...g#
#j..#....._____#
################
....#########....
#####q......#####
#...#.b.p.0.#...#
#.x.a.......d.*.#
#...#...$ww.#...#
#####q....u.#####
....#########....
#################....
#...#.0.#...#0.0#####
#.*.eww.#.*.a.u.#...#
#####...#####.w.#.*.#
#...#.w.....#.wwewwp#
#.x.d.u..b..mww.#.u.#
#...#......q#####...#
#############...#####
.x.
...
.p.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment