Created
April 13, 2020 17:56
-
-
Save shmam/074e7d5d95cd6088aab918c67f016a30 to your computer and use it in GitHub Desktop.
Lost in my Head (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 Lost in my Head | |
author CSC 281 Team TRYHARD | |
homepage www.puzzlescript.net | |
======== | |
OBJECTS | |
======== | |
Background1 | |
darkblue black darkgreen | |
00002 | |
00100 | |
00000 | |
20000 | |
00010 | |
Background2 | |
darkblue purple darkgreen | |
00002 | |
00100 | |
00000 | |
20000 | |
00010 | |
Wall_Fake | |
black darkblue darkgreen | |
00000 | |
20121 | |
02010 | |
01210 | |
00000 | |
Wall | |
black darkblue darkbrown | |
00000 | |
20121 | |
02010 | |
01210 | |
00000 | |
Background_Fake | |
darkblue #4d004d darkgreen | |
00002 | |
00100 | |
00000 | |
20000 | |
00010 | |
House | |
brown lightbrown | |
11000 | |
11111 | |
00000 | |
01111 | |
10010 | |
Target | |
darkblue grey orange lightbrown yellow | |
01110 | |
14441 | |
13331 | |
12221 | |
11111 | |
Player_Justin | |
lightbrown white lightgreen lightblue | |
.000. | |
.111. | |
22222 | |
.333. | |
.3.3. | |
Player_Dog | |
brown grey white | |
..... | |
...0. | |
0..00 | |
.000. | |
.0.0. | |
Player_Dog_Reverse | |
brown grey white | |
..... | |
...0. | |
0..00 | |
.000. | |
.0.0. | |
Gooblin | |
red #ff5a97 black white grey | |
.3.3. | |
.011. | |
02021 | |
.000. | |
.4.4. | |
lockedExit | |
darkblue grey brown lightbrown black | |
01110 | |
12221 | |
14431 | |
12221 | |
11111 | |
Key | |
#ff9300 Black | |
..000 | |
..010 | |
...0. | |
...0. | |
..00. | |
conflict | |
transparent | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
Rock | |
Grey darkgray | |
..... | |
.001. | |
01000 | |
00010 | |
.010. | |
water | |
blue lightblue transparent | |
00000 | |
01000 | |
00000 | |
00010 | |
00000 | |
grass | |
green lightgreen lightgray | |
01000 | |
10010 | |
00101 | |
02010 | |
01000 | |
end_target | |
darkblue grey black | |
01110 | |
12221 | |
12221 | |
12221 | |
11111 | |
======= | |
LEGEND | |
======= | |
Background = Background1 or Background2 or Wall_Fake | |
Player = Player_Justin or Player_Dog or Player_Dog_Reverse | |
status = conflict | |
. = Background1 | |
- = Background2 | |
/ = Background_Fake | |
# = Wall | |
$ = Wall_Fake | |
P = Player_Justin | |
D = Player_Dog | |
r = Player_Dog_Reverse | |
* = Rock | |
O = Target | |
k = key | |
h = lockedExit | |
g = Gooblin | |
W = water | |
l = grass | |
y = end_target | |
t = House | |
======= | |
SOUNDS | |
======= | |
Rock MOVE 36772507 | |
Player_Justin CantMove 32106107 | |
Player_Dog CantMove 13873907 | |
sfx0 9992502 | |
endlevel 67990703 | |
sfx1 64657502 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Target, grass | |
Player, Wall, Background_Fake, Rock, key, lockedExit, Gooblin, Player_Dog_Reverse, water, end_target, house | |
Conflict | |
====== | |
RULES | |
====== | |
[ > Player | Rock ] -> [ > Player | > Rock ] | |
[ > Player | Key ] [ lockedExit] -> [ > Player | No Key ] [Target] sfx0 | |
[ Gooblin | ... | Player ] -> [ > Gooblin | ... | Player ] | |
[ stationary Gooblin ] -> [randomDir Gooblin] | |
[ no Conflict > Player_Dog_Reverse ] -> [ < Player_Dog_Reverse Conflict] | |
[Conflict] -> [] | |
[ < Player_Dog_Reverse | Rock ] -> [ < Player_Dog_Reverse | < Rock] | |
[player|Gooblin] -> [Gooblin|Gooblin] sfx1 message You've been turned into a Gooblin! Press r to restart. | |
============== | |
WINCONDITIONS | |
============== | |
any Player on Target | |
======= | |
LEVELS | |
======= | |
message Where am I? I must have fallen into a cave. What is with all these glowing mushrooms? I should look for a way out. | |
(LEVEL 1: Basic Rock pushing) | |
message Maybe I should try pushing these rocks | |
################ | |
#.......#..-...# | |
#.-........-...# | |
###...-..*.....# | |
###....P......## | |
#............### | |
#..........$#### | |
#.*....-.......# | |
#..............# | |
#..-.*..*.*....# | |
#..*...*-..*..-# | |
#....*.*.....-.# | |
#######.######## | |
#######.######## | |
#######O######## | |
(LEVEL 2: Blocking mushrooms and Hidden Walls + Dog) | |
message I feel kinda funny. Moving those rocks must have took it out of me! | |
################ | |
#...../....*...# | |
#.-.......*-...# | |
#.....-..*.....# | |
#..-....*.../..# | |
#..//./#../....# | |
#..../.#.......D | |
#.*....-#......# | |
#........####### | |
#..-./.........# | |
#.......-.....-# | |
#............-.# | |
####.###$##$#### | |
#....*........$# | |
#############O## | |
(LEVEL 3: Walls + Rocks) | |
message Whats happening, why am I a dog now? | |
##*############# | |
#$$....-.......# | |
#$#/##.........# | |
#..*.##..##....# | |
D..*#####../...# | |
##-.#.--...#...# | |
##/.*../.#.#...$ | |
#...#../##.#..$$ | |
#../-##-.#.#.$$$ | |
#......../.#$..$ | |
#......./.../..o | |
###.....##-.-//# | |
####-..-.##....# | |
####....#*#...-# | |
#*############## | |
(LEVEL 4: Gooblins) | |
message Did I just walk through that wall? I think I hear something up ahead, better steer clear of it. | |
################ | |
#..g.......-...# | |
#.-.*...///....# | |
#../..-..*-....# | |
#..///..#.##/#.# | |
#$/....#.....#.# | |
#*$..../....#### | |
#$.....-#.....o# | |
#..../...###//$# | |
#..-.........g.# | |
#.............-# | |
#............-.# | |
####..-#///##### | |
#......$...*..## | |
#############D## | |
(LEVEL 5: MORE ENEMIES) | |
message I should stay out of sight of those things, they dont seem too friendly... I hope I can make it out of here | |
################ | |
#..D....#..-...# | |
#.-........-...# | |
###...-..*..g..# | |
###....###....## | |
#......###...### | |
#....g.....$#### | |
#.*............# | |
#....g......g..# | |
#..-....###....# | |
#..*......##..-# | |
#....*.......-.# | |
#####.########## | |
#####.########## | |
#####O########## | |
(LEVEL 6: LOCK AND KEY) | |
message What's that shiny thing in the center of the room? | |
################ | |
#............D.# | |
#*.............# | |
##**..########## | |
#...***.######.# | |
#..**.....###### | |
#..*...........# | |
#..............# | |
#.......##.....# | |
#........#.....# | |
#.............*# | |
#....k.......*.# | |
#........#.....# | |
#####....##....# | |
######.........h | |
################ | |
(LEVEL 7: MORE LOCK AND KEY) | |
message Oh, so gotta make sure to get those keys | |
################ | |
##.##...$###.D.# | |
##k#.....###...# | |
#..$.-.#.##.---# | |
##*#..##.##.-.## | |
#.....##.*...### | |
#/...###**...-.# | |
######--.*.....# | |
#**##.......-### | |
###...--...-.**# | |
#....//./.....*# | |
##..../...-..### | |
##$$.....-###### | |
h..#../...-##### | |
####......###### | |
################ | |
(LEVEL 8: REVERSE MECHANIC) | |
message I'm feeling more dizzy, and I'm starting to lose a sense of direction | |
################ | |
#..r....#..-...# | |
#.-........-...# | |
###...-..*.....# | |
###....###....## | |
#......###...### | |
#..........$#### | |
#.*............# | |
#..............# | |
#..-....###....# | |
#..*......##..-# | |
#....*.......-.# | |
#####.########## | |
#####.########## | |
#####O########## | |
(LEVEL 9: TODO, REVERSE MECHANIC + ENEMIES) | |
message I guess I'm walking backwards now? I'm still hallucinating real bad. I really hope I get out of this cave soon... | |
################ | |
#k$$#....--/.r.# | |
##$$*....-/#...# | |
###.......##...# | |
#.....-..$$....# | |
#.......##.....# | |
#...-...#......# | |
##.....##..-...# | |
#g.######./....# | |
###*www##......# | |
####ww##.g.....# | |
###*w##./-.....# | |
#.####.....-.### | |
#..g....../..### | |
h.#.......-##### | |
################ | |
(LEVEL 10: TODO, ALL MECHANICS) | |
message Is that light?? I think I might be almost out!! | |
################ | |
hg......./..#r## | |
##.-../.......## | |
#....##.##*..-.# | |
#...#######....# | |
#...##wwww#../.# | |
#...##wwww#....# | |
#./.*#wkww#....# | |
#-..##w$ww##...# | |
#...##w$ww###..# | |
#....##$####.-.# | |
#....##*.-.....# | |
#..............# | |
##.../.../.....# | |
##g.....-.../#g# | |
################ | |
(LEVEL 11: Ending scene) | |
message I'M FREE!! Finally some fresh air | |
#######y######## | |
l......P.......l | |
ll............ll | |
llllllllllllllll | |
llllllllllllllll | |
lllllllllllllttt | |
lllllllllllllttt | |
llllllllllllltot | |
lWWlllllllllllll | |
lWWWWWWlllllllll | |
lWWWWWWWWWWWWWWl | |
WWWWWWWWWWWWWWWW | |
WWWWWWWWWWWWWWWW | |
WWWWWWWWWWWWWWWW | |
WWWWWWWWWWWWWWWW | |
WWWWWWWWWWWWWWWW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment