Created
September 4, 2021 05:29
-
-
Save arya-s/30b3aff2ab08cce2ac9ec398a72544cb to your computer and use it in GitHub Desktop.
Portals (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 Portals | |
author aryajp | |
======== | |
OBJECTS | |
======== | |
Temp | |
black | |
L1 1 | |
black | |
L2 2 | |
black | |
L3 3 | |
black | |
L4 4 | |
black | |
L5 5 | |
black | |
L6 6 | |
black | |
L7 7 | |
black | |
Background . | |
DarkBlue | |
BluePortal B | |
lightblue blue | |
..... | |
.111. | |
11001 | |
10011 | |
.111. | |
OrangePortal O | |
lightred orange | |
..... | |
.111. | |
11001 | |
10011 | |
.111. | |
Player P | |
Gray White | |
.1.1. | |
10101 | |
11111 | |
.111. | |
00.00 | |
======= | |
LEGEND | |
======= | |
========= | |
SOUNDS | |
========= | |
endlevel 97301508 | |
startgame 97301508 | |
endgame 97301508 | |
================ | |
COLLISIONLAYERS | |
================ | |
Temp | |
L1, L2, L3, L4, L5, L6, L7 | |
Background | |
BluePortal, OrangePortal | |
Player | |
====== | |
RULES | |
====== | |
( direct teleport ) | |
late [ Player BluePortal | ... | OrangePortal ] -> [ BluePortal | ... | Player OrangePortal ] | |
( ### scan down ) | |
( # teleport to line tiles ) | |
late [ Player BluePortal | ... | L1 ] -> [ BluePortal | ... | Player L1 ] | |
late [ Player BluePortal | ... | L2 ] -> [ BluePortal | ... | Player L2 ] | |
late [ Player BluePortal | ... | L3 ] -> [ BluePortal | ... | Player L3 ] | |
late [ Player BluePortal | ... | L4 ] -> [ BluePortal | ... | Player L4 ] | |
late [ Player BluePortal | ... | L5 ] -> [ BluePortal | ... | Player L5 ] | |
late [ Player BluePortal | ... | L6 ] -> [ BluePortal | ... | Player L6 ] | |
late [ Player BluePortal | ... | L7 ] -> [ BluePortal | ... | Player L7 ] | |
( #scan to path for orange (to the right basically) and place player if found ) | |
late [ Player L1 | ... | OrangePortal ] -> [ L1 | ... | Player OrangePortal ] | |
( #else place player down to next line) | |
late [ Player L1 | ... | L2 ] -> [ L1 | ... | Player L2 ] | |
late [ Player L2 | ... | OrangePortal ] -> [ L2 | ... | Player OrangePortal ] | |
late [ Player L2 | ... | L3 ] -> [ L2 | ... | Player L3 ] | |
late [ Player L3 | ... | OrangePortal ] -> [ L3 | ... | Player OrangePortal ] | |
late [ Player L3 | ... | L4 ] -> [ L3 | ... | Player L4 ] | |
late [ Player L4 | ... | OrangePortal ] -> [ L4 | ... | Player OrangePortal ] | |
late [ Player L4 | ... | L5 ] -> [ L4 | ... | Player L5 ] | |
late [ Player L5 | ... | OrangePortal ] -> [ L5 | ... | Player OrangePortal ] | |
late [ Player L5 | ... | L6 ] -> [ L5 | ... | Player L6 ] | |
late [ Player L6 | ... | OrangePortal ] -> [ L6 | ... | Player OrangePortal ] | |
late [ Player L6 | ... | L7 ] -> [ L6 | ... | Player L7 ] | |
late [ Player L7 | ... | OrangePortal ] -> [ L7 | ... | Player OrangePortal ] | |
( ### scan up) | |
late [ Player BluePortal | ... | L1 ] -> [ BluePortal | ... | Player L1 ] | |
late [ Player BluePortal | ... | L2 ] -> [ BluePortal | ... | Player L2 ] | |
late [ Player BluePortal | ... | L3 ] -> [ BluePortal | ... | Player L3 ] | |
late [ Player BluePortal | ... | L4 ] -> [ BluePortal | ... | Player L4 ] | |
late [ Player BluePortal | ... | L5 ] -> [ BluePortal | ... | Player L5 ] | |
late [ Player BluePortal | ... | L6 ] -> [ BluePortal | ... | Player L6 ] | |
late [ Player BluePortal | ... | L7 ] -> [ BluePortal | ... | Player L7 ] | |
late [ Player L7 | ... | L6 ] -> [ L7 | ... | Player L6 ] | |
late [ Player L6 | ... | OrangePortal ] -> [ L6 | ... | Player OrangePortal ] | |
late [ Player L6 | ... | L5 ] -> [ L6 | ... | Player L5 ] | |
late [ Player L5 | ... | OrangePortal ] -> [ L5 | ... | Player OrangePortal ] | |
late [ Player L5 | ... | L4 ] -> [ L5 | ... | Player L4 ] | |
late [ Player L4 | ... | OrangePortal ] -> [ L4 | ... | Player OrangePortal ] | |
late [ Player L4 | ... | L3 ] -> [ L4 | ... | Player L3 ] | |
late [ Player L3 | ... | OrangePortal ] -> [ L3 | ... | Player OrangePortal ] | |
late [ Player L3 | ... | L2 ] -> [ L3 | ... | Player L2 ] | |
late [ Player L2 | ... | OrangePortal ] -> [ L2 | ... | Player OrangePortal ] | |
late [ Player L2 | ... | L1 ] -> [ L2 | ... | Player L1 ] | |
late [ Player L1 | ... | OrangePortal ] -> [ L1 | ... | Player OrangePortal ] | |
============== | |
WINCONDITIONS | |
============== | |
======= | |
LEVELS | |
======= | |
message level 1 of 10 | |
1........ | |
2........ | |
3......o. | |
4........ | |
5...p.... | |
6........ | |
7b....... | |
message congratulations! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment