Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Created June 12, 2019 20:40
Show Gist options
  • Save jcmiller11/9fa8efa19150fc371f1a4c85f8907fa7 to your computer and use it in GitHub Desktop.
Save jcmiller11/9fa8efa19150fc371f1a4c85f8907fa7 to your computer and use it in GitHub Desktop.
marbles (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title marbles
author skymoo
homepage www.puzzlescript.net
again_interval 0.1
========
OBJECTS
========
Background
GREEN
Wall
BROWN
StateMarker
BROWN
UpState
Black
..0..
.000.
0.0.0
..0..
..0..
DownState
Black
..0..
..0..
0.0.0
.000.
..0..
LeftState
Black
..0..
.0...
00000
.0...
..0..
RightState
Black
..0..
...0.
00000
...0.
..0..
Player
Orange
.....
.....
.....
.....
.....
RedBox
Red
..0..
.000.
00000
.000.
..0..
RedTarget
Red
00000
0...0
0...0
0...0
00000
BlueBox
Blue
..0..
.000.
00000
.000.
..0..
BlueTarget
Blue
00000
0...0
0...0
0...0
00000
YellowBox
Yellow
..0..
.000.
00000
.000.
..0..
YellowTarget
Yellow
00000
0...0
0...0
0...0
00000
=======
LEGEND
=======
. = Background
# = Wall
@ = Player
DirState = LeftState or RightState or UpState or DownState
Box = RedBox or BlueBox or YellowBox
Target = RedTarget or BlueTarget or YellowTarget
r = RedBox
b = BlueBox
y = YellowBox
s = RedTarget
t = BlueTarget
u = YellowTarget
M = StateMarker
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Player
Wall, Box, StateMarker
DirState
Target
======
RULES
======
[ > Player ] [ Box ] -> [ > Player ] [ > Box ]
[UP Player] [StateMarker] -> [Player][StateMarker UpState]
[DOWN Player] [StateMarker] -> [Player][StateMarker DownState]
[LEFT Player] [StateMarker] -> [Player][StateMarker LeftState]
[RIGHT Player] [StateMarker] -> [Player][StateMarker RightState]
UP [StateMarker UpState] [ Box | no Box no Wall ] -> [StateMarker UpState] [ | Box ] again
DOWN [StateMarker DownState] [ Box | no Box no Wall ] -> [StateMarker DownState] [ | Box ] again
LEFT [StateMarker LeftState] [ Box | no Box no Wall ] -> [StateMarker LeftState] [ | Box ] again
RIGHT [StateMarker RightState] [ Box | no Box no Wall ] -> [StateMarker RightState] [ | Box ] again
==============
WINCONDITIONS
==============
All RedTarget on RedBox
All BlueTarget on BlueBox
All YellowTarget on YellowBox
=======
LEVELS
=======
@#######M
###s....#
#....r..#
#.y....t#
#.......#
#..u#.b.#
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment