Skip to content

Instantly share code, notes, and snippets.

@m-ender
Created October 5, 2023 13:52
Show Gist options
  • Save m-ender/b8ee0e4e130fda1823817febfc26c3ce to your computer and use it in GitHub Desktop.
Save m-ender/b8ee0e4e130fda1823817febfc26c3ce to your computer and use it in GitHub Desktop.
10 (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title 10
author Menderbug
homepage menderbug.itch.io
========
OBJECTS
========
Background
#aaa
Outside
#222
LineRight
orange
.....
.....
..000
.....
.....
LineLeft
orange
.....
.....
000..
.....
.....
LineUp
orange
..0..
..0..
..0..
.....
.....
LineDown
orange
.....
.....
..0..
..0..
..0..
TargetRight
#999
.....
.....
..000
.....
.....
TargetLeft
#999
.....
.....
000..
.....
.....
TargetUp
#999
..0..
..0..
..0..
.....
.....
TargetDown
#999
.....
.....
..0..
..0..
..0..
WallUp
#3f240d #222
11111
00000
.....
.....
.....
WallDown
#07163f #222
.....
.....
.....
00000
11111
WallLeft
#3f240d #222
10...
10...
10...
10...
10...
WallRight
#07163f #222
...01
...01
...01
...01
...01
WallUpLeft
#3f240d #222
11111
10000
10...
10...
10...
WallUpRight
#3f240d #222 #07163f
11111
00001
...21
...21
...21
WallDownRight
#07163f #222
...01
...01
...01
00001
11111
WallDownLeft
#07163f #222 #3f240d
12...
12...
12...
10000
11111
Player
#ddd
.....
..0..
.000.
..0..
.....
=======
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
=======
================
COLLISIONLAYERS
================
Background
TargetLeft
TargetRight
TargetUp
TargetDown
LineLeft
LineRight
LineUp
LineDown
Player
Wall, Outside
======
RULES
======
[ 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 ]
==============
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