Last active
November 3, 2023 00:10
-
-
Save jcmiller11/d47eb2670cb6fd7e6ab12557b8a0fcd7 to your computer and use it in GitHub Desktop.
Looping Example (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 Looping Example | |
author jc | |
homepage www.puzzlescript.net | |
run_rules_on_level_start | |
======== | |
OBJECTS | |
======== | |
Background | |
black | |
Player | |
black orange white blue | |
.000. | |
.111. | |
22222 | |
.333. | |
.3.3. | |
UpBorder | |
red | |
00000 | |
..... | |
..... | |
..... | |
..... | |
RightBorder | |
blue | |
....0 | |
....0 | |
....0 | |
....0 | |
....0 | |
DownBorder | |
green | |
..... | |
..... | |
..... | |
..... | |
00000 | |
LeftBorder | |
yellow | |
0.... | |
0.... | |
0.... | |
0.... | |
0.... | |
FirstTurn | |
transparent | |
======= | |
LEGEND | |
======= | |
. = Background | |
P = Player and FirstTurn | |
Borders = UpBorder or RightBorder or DownBorder or LeftBorder | |
======= | |
SOUNDS | |
======= | |
Sfx0 33064905 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Player | |
FirstTurn | |
UpBorder | |
RightBorder | |
DownBorder | |
LeftBorder | |
====== | |
RULES | |
====== | |
[FirstTurn] -> [UpBorder RightBorder DownBorder LeftBorder] | |
horizontal [UpBorder |no UpBorder ] -> [UpBorder |UpBorder ] | |
horizontal [DownBorder |no DownBorder ] -> [DownBorder |DownBorder ] | |
vertical [RightBorder|no RightBorder] -> [RightBorder|RightBorder] | |
vertical [LeftBorder |no LeftBorder ] -> [LeftBorder |LeftBorder ] | |
UP [UpBorder |] -> [|UpBorder ] | |
RIGHT [RightBorder|] -> [|RightBorder] | |
DOWN [DownBorder |] -> [|DownBorder ] | |
LEFT [LeftBorder |] -> [|LeftBorder ] | |
[UP Player UpBorder |...|DownBorder ] -> [UpBorder |...|DownBorder Player] Sfx0 | |
[RIGHT Player RightBorder|...|LeftBorder ] -> [RightBorder|...|LeftBorder Player] Sfx0 | |
[DOWN Player DownBorder |...|UpBorder ] -> [DownBorder |...|UpBorder Player] Sfx0 | |
[LEFT Player LeftBorder |...|RightBorder] -> [LeftBorder |...|RightBorder Player] Sfx0 | |
============== | |
WINCONDITIONS | |
============== | |
======= | |
LEVELS | |
======= | |
......... | |
.......P. | |
......... | |
......... | |
......... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment