Created
October 5, 2023 14:50
-
-
Save m-ender/a4694c1a9f662c1bb0db413f842679fe to your computer and use it in GitHub Desktop.
10 (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 10 | |
author Menderbug | |
homepage menderbug.itch.io | |
background_color #222 | |
text_color #BBC5D4 | |
again_interval 1 | |
======== | |
OBJECTS | |
======== | |
Background | |
#BBC5D4 | |
WinBackground | |
#222 | |
Outside | |
#222 | |
LineRight | |
#4D4D4D | |
..... | |
..... | |
..000 | |
..... | |
..... | |
LineLeft | |
#4D4D4D | |
..... | |
..... | |
000.. | |
..... | |
..... | |
LineUp | |
#4D4D4D | |
..0.. | |
..0.. | |
..0.. | |
..... | |
..... | |
LineDown | |
#4D4D4D | |
..... | |
..... | |
..0.. | |
..0.. | |
..0.. | |
WinLineRight | |
#BBC5D4 | |
..... | |
..... | |
..000 | |
..... | |
..... | |
WinLineLeft | |
#BBC5D4 | |
..... | |
..... | |
000.. | |
..... | |
..... | |
WinLineUp | |
#BBC5D4 | |
..0.. | |
..0.. | |
..0.. | |
..... | |
..... | |
WinLineDown | |
#BBC5D4 | |
..... | |
..... | |
..0.. | |
..0.. | |
..0.. | |
TargetRight | |
#B0BACD | |
..... | |
..... | |
..000 | |
..... | |
..... | |
TargetLeft | |
#B0BACD | |
..... | |
..... | |
000.. | |
..... | |
..... | |
TargetUp | |
#B0BACD | |
..0.. | |
..0.. | |
..0.. | |
..... | |
..... | |
TargetDown | |
#B0BACD | |
..... | |
..... | |
..0.. | |
..0.. | |
..0.. | |
WallUp | |
#bc8612 #222 | |
00000 | |
00000 | |
..... | |
..... | |
..... | |
WallDown | |
#1B8AC9 #222 | |
..... | |
..... | |
..... | |
00000 | |
00000 | |
WallLeft | |
#bc8612 #222 | |
00... | |
00... | |
00... | |
00... | |
00... | |
WallRight | |
#1B8AC9 #222 | |
...00 | |
...00 | |
...00 | |
...00 | |
...00 | |
WallUpLeft | |
#bc8612 #222 | |
00000 | |
00000 | |
00... | |
00... | |
00... | |
WallUpRight | |
#bc8612 #222 #1B8AC9 | |
00000 | |
00002 | |
...22 | |
...22 | |
...22 | |
WallDownRight | |
#1B8AC9 #222 | |
...00 | |
...00 | |
...00 | |
00000 | |
00000 | |
WallDownLeft | |
#1B8AC9 #222 #bc8612 | |
22... | |
22... | |
22... | |
20000 | |
00000 | |
Player | |
#cc43c5 | |
..... | |
..0.. | |
.000. | |
..0.. | |
..... | |
_Temp | |
pink | |
======= | |
LEGEND | |
======= | |
a = WallUpLeft and TargetRight | |
b = WallUp and TargetLeft and TargetDown | |
c = WallUp and Player | |
d = WallUp and TargetDown and TargetRight | |
e = WallUp and TargetLeft and TargetRight | |
f = WallUpRight and TargetLeft and TargetDown | |
g = WallLeft | |
h = TargetUp and TargetDown | |
i = Background | |
j = TargetUp and TargetDown | |
k = Background | |
l = WallRight and TargetUp and TargetDown | |
m = WallDownLeft and TargetRight | |
n = WallDown and TargetLeft and TargetUp and TargetRight | |
o = WallDown and TargetLeft | |
p = WallDown and TargetUp and TargetRight | |
q = WallDown and TargetLeft and TargetRight | |
r = WallDownRight and TargetLeft and TargetUp | |
# = Outside | |
Wall = WallUp or WallDown or WallLeft or WallRight or WallUpLeft or WallUpRight or WallDownRight or WallDownLeft | |
TeleportDown = WallDown or WallDownRight or WallDownLeft | |
TeleportUp = WallUp or WallUpLeft or WallUpRight | |
TeleportLeft = WallLeft or WallUpLeft or WallDownLeft | |
TeleportRight = WallRight or WallUpRight or WallDownRight | |
======= | |
SOUNDS | |
======= | |
sfx0 48652100 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
WinBackground | |
TargetLeft | |
TargetRight | |
TargetUp | |
TargetDown | |
LineLeft, WinLineLeft | |
LineRight, WinLineRight | |
LineUp, WinLineUp | |
LineDown, WinLineDown | |
Player | |
Wall, Outside | |
_Temp | |
====== | |
RULES | |
====== | |
[ WinBackground ] -> win | |
[ TeleportLeft | ... | TeleportRight > Player ] -> [ TeleportLeft Player | ... | TeleportRight ] | |
[ TeleportRight | ... | TeleportLeft > Player ] -> [ TeleportRight Player | ... | TeleportLeft ] | |
[ TeleportUp | ... | TeleportDown > Player ] -> [ TeleportUp Player | ... | TeleportDown ] | |
[ TeleportDown | ... | TeleportUp > Player ] -> [ TeleportDown Player | ... | TeleportUp ] | |
right [ > Player LineRight | LineLeft ] -> [ | Player ] | |
right [ > Player no LineRight | ] -> [ LineRight | LineLeft Player ] | |
left [ > Player LineLeft | LineRight ] -> [ | Player ] | |
left [ > Player no LineLeft | ] -> [ LineLeft | LineRight Player ] | |
up [ > Player LineUp | LineDown ] -> [ | Player ] | |
up [ > Player no LineUp | ] -> [ LineUp | LineDown Player ] | |
down [ > Player LineDown | LineUp ] -> [ | Player ] | |
down [ > Player no LineDown | ] -> [ LineDown | LineUp Player ] | |
random [ ] -> [ _Temp ] | |
[ TargetLeft no LineLeft ] [ _Temp ] -> [ TargetLeft ] [ ] | |
[ LineLeft no TargetLeft ] [ _Temp ] -> [ LineLeft ] [ ] | |
[ TargetRight no LineRight ] [ _Temp ] -> [ TargetRight ] [ ] | |
[ LineRight no TargetRight ] [ _Temp ] -> [ LineRight ] [ ] | |
[ TargetUp no LineUp ] [ _Temp ] -> [ TargetUp ] [ ] | |
[ LineUp no TargetUp ] [ _Temp ] -> [ LineUp ] [ ] | |
[ TargetDown no LineDown ] [ _Temp ] -> [ TargetDown ] [ ] | |
[ LineDown no TargetDown ] [ _Temp ] -> [ LineDown ] [ ] | |
[ _Temp ] [ no WinBackground ] -> [ _Temp ] [ WinBackground ] | |
[ _Temp ] [ LineLeft ] -> [ _Temp ] [ WinLineLeft ] | |
[ _Temp ] [ LineRight ] -> [ _Temp ] [ WinLineRight ] | |
[ _Temp ] [ LineUp ] -> [ _Temp ] [ WinLineUp ] | |
[ _Temp ] [ LineDown ] -> [ _Temp ] [ WinLineDown ] | |
[ _Temp ] [ Player ] -> [ _Temp ] [ ] | |
[ _Temp ] -> [ ] again sfx0 | |
============== | |
WINCONDITIONS | |
============== | |
All TargetLeft on LineLeft | |
All LineLeft on TargetLeft | |
All TargetRight on LineRight | |
All LineRight on TargetRight | |
All TargetUp on LineUp | |
All LineUp on TargetUp | |
All TargetDown on LineDown | |
All LineDown on TargetDown | |
======= | |
LEVELS | |
======= | |
######## | |
#abcdef# | |
#ghijkl# | |
#mnopqr# | |
######## | |
message Happy birthday, PuzzleScript! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment