Created
September 2, 2020 21:49
-
-
Save thacuber2a03/7cb7c2bf7c1ce9651e98f8474df62601 to your computer and use it in GitHub Desktop.
Sidescroll Factory (PuzzleScript Script)
This file contains 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 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 Sidescroll Factory | |
author Tha Cuber | |
homepage thacuber.itch.io | |
background_color green | |
text_color lightgreen | |
norepeat_action | |
======== | |
OBJECTS | |
======== | |
Player | |
blue black lightbrown brown | |
.333. | |
.222. | |
00000 | |
.000. | |
.1.1. | |
Background | |
gray | |
Roof | |
darkgray | |
Floor | |
darkgray red | |
11101 | |
00000 | |
10111 | |
00000 | |
11101 | |
Crate | |
brown lightbrown | |
01110 | |
10101 | |
11011 | |
10101 | |
01110 | |
Ladder | |
lightbrown | |
0...0 | |
00000 | |
0...0 | |
00000 | |
0...0 | |
Lever | |
red darkgray black | |
...00 | |
...00 | |
..11. | |
.11.. | |
22222 | |
Button | |
red darkgray | |
..... | |
..... | |
.000. | |
.000. | |
11111 | |
Lever_door | |
yellow black | |
00000 | |
01110 | |
01.10 | |
01110 | |
00000 | |
Button_door | |
red black | |
00000 | |
01110 | |
01.10 | |
01110 | |
00000 | |
Door | |
brown yellow | |
.000. | |
00000 | |
00011 | |
00000 | |
00000 | |
Door_anim1 | |
brown yellow black blue lightbrown | |
.0000 | |
00444 | |
03333 | |
00333 | |
00202 | |
Door_anim2 | |
brown yellow black blue lightbrown | |
.0000 | |
00444 | |
00333 | |
00333 | |
00202 | |
Door_anim3 | |
brown yellow black blue lightbrown | |
02000 | |
00444 | |
03333 | |
00333 | |
00222 | |
Door_anim4 | |
brown yellow black blue lightbrown | |
.0000 | |
00044 | |
00133 | |
00033 | |
00022 | |
Door_anim5 | |
brown yellow black blue lightbrown | |
.0000 | |
00004 | |
00013 | |
00003 | |
00002 | |
Door_anim6 | |
brown yellow | |
.000. | |
00000 | |
00011 | |
00000 | |
00000 | |
Lever_pulled | |
red darkgray black | |
00... | |
00... | |
.11.. | |
..11. | |
22222 | |
Lever_doorlastpos | |
gray | |
Button_pressed | |
red darkgray | |
..... | |
..... | |
..... | |
.000. | |
11111 | |
Button_doorlastpos | |
gray | |
======= | |
LEGEND | |
======= | |
P = Player | |
. = Background | |
F = Floor | |
C = Crate | |
R = Roof | |
D = Door | |
L = Ladder | |
E = Lever | |
T = Lever_pulled | |
K = Lever_door | |
B = Button | |
U = Button_pressed | |
G = Button_door | |
Object = Crate or Floor or Door or Ladder or Lever_door | |
Object2 = Crate or Floor or Door or Lever_door | |
======= | |
SOUNDS | |
======= | |
Crate move 58009907 | |
Player move 50318107 | |
sfx0 60606308 | |
sfx1 14687908 | |
sfx2 61274108 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Door_anim1, Door_anim2, Door_anim3, Door_anim4, Door_anim5, Door_anim6, Lever_pulled, Lever_doorlastpos, Button_pressed, Button_doorlastpos | |
Roof, Door, Ladder, Lever, Button | |
Floor, Player, Crate, Lever_door, Button_door | |
====== | |
RULES | |
====== | |
(that gravity code) | |
[moving Player] -> [moving Player] again | |
random down [ Player | no Object ] -> [ | Player ] again | |
random down [ Crate | no Object2 no Player ] -> [ | Crate ] again | |
(push me lol) | |
[ > Player | Crate ] -> [ > Player | > Crate ] | |
(something idk) | |
late [Player Door] -> [ Door_anim1 Background ] sfx0 | |
(animation) | |
[Door_anim6] -> [Door] again | |
[Door_anim5] -> [Door_anim6] again | |
[Door_anim4] -> [Door_anim5] again | |
[Door_anim3] -> [Door_anim4] again | |
[Door_anim2] -> [Door_anim3] again | |
[Door_anim1] -> [Door_anim2] again | |
(lever) | |
[ Action Player Lever ] -> [ Player Lever_pulled ] | |
[ Action Player Lever_pulled ] -> [ Player Lever ] | |
late [ Lever_pulled | ... | Lever_door ] -> [ Lever_pulled | ... | Lever_doorlastpos ] sfx1 | |
late [ Lever | ... | Lever_doorlastpos ] -> [ Lever | ... | Lever_door ] sfx1 | |
(button) | |
[ Crate Button ] -> [ Crate Button_pressed ] sfx2 | |
[ no Crate Button_pressed ] -> [ Button ] sfx2 | |
late random [ Button_pressed | ... | Button_door ] -> [ Button_pressed | ... | Button_doorlastpos ] sfx1 | |
late random [ Button | ... | Button_doorlastpos ] -> [ Button | ... | Button_door ] sfx1 | |
============== | |
WINCONDITIONS | |
============== | |
no Door | |
no Door_anim1 | |
no Door_anim2 | |
no Door_anim3 | |
no Door_anim4 | |
no Door_anim5 | |
======= | |
LEVELS | |
======= | |
message 1- Start | |
fffffffff | |
frrrrrrrf | |
f.......f | |
f.......f | |
fp......f | |
ffff....f | |
ffff....f | |
ffff...Df | |
fffffffff | |
rrrrrrrrr | |
message 2- Something has changed | |
fffffffff | |
frrrrrrrf | |
f.......f | |
f.......f | |
fp......f | |
fffffff.f | |
ffffrrr.f | |
ffffd...f | |
fffffffff | |
rrrrrrrrr | |
message 3- Fill in the hole | |
fffffffffff | |
frrrrrrrrrf | |
f.........f | |
f.........f | |
f.........f | |
fp..c....df | |
fffff.fffff | |
fffffffffff | |
rrrrrrrrrrr | |
message 4- Get up! | |
message Press RESTART if you mess up | |
ffffffffffff | |
f..........f | |
f..c.......f | |
flfff......f | |
fl.........f | |
fl.........f | |
fl.........f | |
fl..p.....df | |
fffffff.ffff | |
ffffffffffff | |
message 5- Pull it | |
message Press ACTION to pull and push levers | |
ffffffffff | |
frrrrrrrrf | |
f........f | |
f.p.e.k.df | |
ffffffffff | |
rrrrrrrrrr | |
message 6- Press it | |
message You can only press buttons with a crate | |
fffffffffffff | |
f...........f | |
f...........f | |
f....c..e...f | |
f....flffffff | |
f.....lff...f | |
f.....lff...f | |
f.p.b.lgk..df | |
fffffffffffff | |
message 7- Trial | |
message There will be no help here. Good luck! | |
fffffffffffffff | |
frrrrrrrrrrrrrf | |
f.............f | |
f......c...cb.f | |
f.....lf..lff.f | |
f.....lr..lrr.f | |
f..c..lc..le..f | |
f..fflff.ffffff | |
f..rrlff.ffffff | |
f....lfffffffff | |
f....lrrrrfffrf | |
f.b..l..p.gkgdf | |
fffffffffffffff | |
rrrrrrrrrrrrrrr | |
message A Tha Cuber's (the creator) note: | |
message Thank you so much for playing my game! | |
message If you want to see more from me, visit my itch.io page | |
message plz (it is below this game) | |
message Also, feel free to hack my game | |
message if you want to see what's inside. *That sounds weird when i say it* | |
message That's everything now, so have a good day and i see you later. | |
message THE END | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment