Created
October 1, 2021 05:16
-
-
Save Stingby12/66ceac7b7408ffe20ec3a98985c8a75a to your computer and use it in GitHub Desktop.
Fill them with crates (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 Fill them with crates | |
author Stingby12 | |
homepage https://stingby12.itch.io/ | |
text_color #6FF5A7 | |
background_color #6B5225 | |
run_rules_on_level_start | |
verbose_logging | |
======== | |
OBJECTS | |
======== | |
Background | |
#3BA868 | |
Wall | |
#6FF5A7 | |
Target | |
#A88343 | |
..... | |
.0.0. | |
..0.. | |
.0.0. | |
..... | |
Blockade | |
#6FF5A7 | |
..... | |
..00. | |
..0.. | |
.00.. | |
..... | |
Player | |
#C787F5 | |
.000. | |
.000. | |
00.00 | |
.000. | |
.0.0. | |
Crate | |
#F5BA56 | |
00000 | |
0...0 | |
0...0 | |
0...0 | |
00000 | |
ProtoCrate | |
transparent | |
NewCrate1 | |
#FA8F4C | |
..... | |
..0.. | |
.0.0. | |
..0.. | |
..... | |
Grow1 | |
transparent | |
NewCrate2 | |
#FFAA4F | |
..0.. | |
.0.0. | |
0...0 | |
.0.0. | |
..0.. | |
Grow2 | |
transparent | |
Destroyed | |
#FA8F4C | |
..... | |
..00. | |
..0.. | |
.00.. | |
..... | |
======= | |
LEGEND | |
======= | |
. = Background | |
# = Wall | |
P = Player | |
+ = Player and Target | |
* = Crate | |
@ = Crate and Target | |
O = Target | |
2 = Player and Blockade | |
: = Crate and Blockade | |
~ = Blockade | |
Grow = Grow1 or Grow2 | |
Blocking = Wall or Crate or NewCrate1 or NewCrate2 | |
======= | |
SOUNDS | |
======= | |
startgame 92244503 | |
endlevel 83744503 | |
Crate MOVE 36772507 | |
sfx0 12318103 (New crate) | |
sfx1 56649502 (Destroyed crate) | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Target, Blockade | |
Destroyed | |
Player, Wall, Crate | |
ProtoCrate | |
NewCrate1 | |
NewCrate2 | |
Grow1 | |
Grow2 | |
====== | |
RULES | |
====== | |
(Main code) | |
[ > Player | Crate ] -> [ > Player | > Crate ] | |
[ > Crate | Blocking ] -> cancel (Prevents cheese) | |
(Growing crates code) | |
late [Crate] -> [ProtoCrate Crate] | |
late [ProtoCrate no Crate] -> [NewCrate1 Grow1] | |
late [NewCrate1 no Grow1] -> [NewCrate2 Grow2] | |
late [NewCrate2 no Grow2] -> [Crate ProtoCrate] sfx0 | |
late [NewCrate1 Grow1 Blockade] -> [Destroyed Blockade] sfx1 | |
[Grow] [moving Crate] -> [ ] [moving Crate] | |
[Destroyed] [moving Crate] -> [ ] [moving Crate] | |
(The way the first part works is that the crates generate an invisible object that turns into a dot when you remove the crate from it.) | |
(I had to make two other objects to make sure the dots fully grows into crates when you push a crate two times. Removing the "Grow" parts will break it.) | |
(The last part contributes to the first and second part of the growing crates code.) | |
============== | |
WINCONDITIONS | |
============== | |
All Target on Crate | |
Some Target (ignore this rule) | |
======= | |
LEVELS | |
======= | |
message Fill all targets with crates. | |
message Level 1 | |
(Surprise level that shows the main mechanic) | |
############# | |
#...........# | |
#...........# | |
#..*..p..o..# | |
#...........# | |
#...........# | |
############# | |
message Level 2 | |
(Good use of the main mechanic) | |
########### | |
#........o# | |
#........o# | |
#..*..p..o# | |
#........o# | |
#........o# | |
########### | |
message Level 3 | |
(Shows that there must be fully grown crates on targets.) | |
##### | |
##o## | |
#.o## | |
#.o## | |
#.@.# | |
#.p.# | |
##### | |
message Level 4 | |
###### | |
#.o### | |
#oop.# | |
#oo#.# | |
#o.*.# | |
#..### | |
###### | |
message Level 5 | |
######### | |
###.o#### | |
#oooo*..# | |
#.#oo#p.# | |
#...o#..# | |
######### | |
message Level 6 | |
###### | |
#ooo## | |
#p.*o# | |
##...# | |
###.o# | |
####o# | |
###### | |
message Level 7 | |
(Looks simple but it's actually pretty hard, I like it.) | |
####### | |
#..p..# | |
#oo@oo# | |
#ooooo# | |
####### | |
message Level 8 | |
(First level with 2 crates) | |
###### | |
#o..o# | |
#.#+.# | |
#o**.# | |
#...o# | |
#ooo.# | |
###### | |
message Level 9 | |
####### | |
##.o.o# | |
#..*#p# | |
#.oo*o# | |
#ooo### | |
####### | |
message Level 10 | |
####### | |
#o.#### | |
#ooo..# | |
#o@@#p# | |
##o..o# | |
####### | |
message Level 11 | |
####### | |
#.o..## | |
#o@*o## | |
#.o.oo# | |
#o#.po# | |
#..o### | |
####### | |
message Level 12 | |
(Introduces blockades, prevents the growing of crates) | |
############# | |
#.....~.....# | |
#.....~.....# | |
#..*..2..o..# | |
#.....~.....# | |
#.....~.....# | |
############# | |
message Level 13 | |
###### | |
###oo# | |
#oo..# | |
#p.:.# | |
###o.# | |
###.o# | |
###### | |
message Level 14 | |
######### | |
#..#..### | |
#oop~o@o# | |
#o.#.~#.# | |
#oo#.ooo# | |
######### | |
message Level 15 | |
(Really cool tiny level) | |
####### | |
#o#+#o# | |
#~#:#~# | |
#~...~# | |
#~~~~~# | |
####### | |
message Level 16 | |
####### | |
##o~.o# | |
#o*.#p# | |
#oo.:o# | |
##o#### | |
####### | |
message Level 17 | |
######### | |
#o.o~o.o# | |
#.o.:.o.# | |
#o.o2o.o# | |
#.o.:.o.# | |
#o.o~o.o# | |
######### | |
message Level 18 | |
(Might stop making level here. But If you want additional levels, ask me in the itch.io comments on the page.) | |
######### | |
#ooooooo# | |
#o~~~~~o# | |
#o~...~o# | |
#o~*p*~o# | |
#o~...~o# | |
#o~~~~~o# | |
#ooooooo# | |
######### | |
message Good job ! Completly filled ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment