Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Created June 3, 2021 18:08
Show Gist options
  • Select an option

  • Save jcmiller11/2ea4f44fbc6509a0481690e2e0732161 to your computer and use it in GitHub Desktop.

Select an option

Save jcmiller11/2ea4f44fbc6509a0481690e2e0732161 to your computer and use it in GitHub Desktop.
Vacuum Thing (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Vacuum Thing
author jc
homepage www.puzzlescript.net
run_rules_on_level_start
========
OBJECTS
========
Background
BLACK
Floor
lightgray
Wall
GREY darkgray
00010
11111
01000
11111
00010
Player
Black Orange White Blue
.222.
.000.
22222
.222.
.2.2.
Crate
Orange Yellow
00000
0...0
0...0
0...0
00000
Stuff1
#003
Stuff2
#006
Stuff3
#009
Stuff4
#00C
Stuff5
#00F
AirDense
#6699FF
.....
.0.0.
.....
.0.0.
.....
AirLight
#6699FF
.....
.0...
.....
.....
.....
AirCanister
lightblue darkgray
.111.
10001
10001
10001
.111.
=======
LEGEND
=======
. = Background
# = Wall
P = Player
* = Crate
Q = Stuff1 and Floor
W = Stuff2 and Floor
E = Stuff3 and Floor
R = Stuff4 and Floor
T = Stuff5 and Floor
1 = Stuff1
2 = Stuff2
3 = Stuff3
4 = Stuff4
5 = Stuff5
- = Floor
A = AirCanister and Floor
Stuff = Stuff1 or Stuff2 or Stuff3 or Stuff4 or Stuff5
Air = AirDense or AirLight
BlocksAir = Wall or Crate or Player
=======
SOUNDS
=======
Crate MOVE 36772507
================
COLLISIONLAYERS
================
Background
Floor
AirCanister
Player, Wall, Crate, Stuff
Air
======
RULES
======
[ > Player | Crate ] -> [ > Player | > Crate ]
[ > Player | Stuff ] -> [ > Player | > Stuff ]
[ > Stuff | Stuff ] -> [ > Stuff | > Stuff ]
[AirDense] -> []
LATE [Floor no Air no BlocksAir] -> [Floor AirDense]
LATE [AirDense|no Air no BlocksAir] -> [AirDense|AirDense]
LATE [AirDense no Floor] -> [AirLight]
LATE [AirLight|AirDense] -> [AirLight|AirLight]
LATE [AirLight|no AirLight no BlocksAir] -> [AirLight|AirLight]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
.P...#####
.....#A--#
.....#---#
....*----#
.....#---#
.....#---#
.....#####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment