Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Created November 3, 2023 00:00
Show Gist options
  • Save jcmiller11/8d9ed86f6bd50bd9454cf662522bdfc0 to your computer and use it in GitHub Desktop.
Save jcmiller11/8d9ed86f6bd50bd9454cf662522bdfc0 to your computer and use it in GitHub Desktop.
AutoBorder Example (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title AutoBorder 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
=======
SOUNDS
=======
================
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 ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
.........
.......P.
.........
.........
.........
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment