Skip to content

Instantly share code, notes, and snippets.

@blunket
Created July 23, 2019 15:16
Show Gist options
  • Save blunket/9532a6dbaa5751e28234728132f4a3ad to your computer and use it in GitHub Desktop.
Save blunket/9532a6dbaa5751e28234728132f4a3ad to your computer and use it in GitHub Desktop.
Sync (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Sync
author Andrew Siegman
homepage www.andrewsiegman.com
key_repeat_interval 0.2
========
OBJECTS
========
Background
#aef #6ff
00000
00000
00000
00000
00000
TargetBlue
#09c
00000
0...0
0.0.0
0...0
00000
TargetGreen
#0d2
00000
0...0
0.0.0
0...0
00000
Wall
Black
00000
00000
00000
00000
00000
PlayerBlue
#09c
.....
.000.
.0.0.
.000.
.....
PlayerGreen
#0d2
.....
.000.
.0.0.
.000.
.....
Lava
#f66 #f80
11111
10111
11110
11111
11011
Sand
#faa #fd8
11111
01111
11101
11111
10111
TempSand
#faa #fd8
11111
01111
11101
11111
10111
=======
LEGEND
=======
. = Background
# = Wall
B = PlayerBlue
G = PlayerGreen
L = TargetBlue
R = TargetGreen
D = Lava
T = Sand
Player = PlayerBlue or PlayerGreen
=======
SOUNDS
=======
TempSand destroy 98931307
restart 93870504
endlevel 79261700
================
COLLISIONLAYERS
================
Background
TargetBlue, TargetGreen, Lava, Sand, TempSand
PlayerBlue, PlayerGreen, Wall
======
RULES
======
[ > Player ] -> [ > Player ]
[ > Player | Lava ] -> restart
[ > Player | Sand ] -> [ > Player | TempSand ]
late [ TempSand no Player ] -> [ Wall ]
==============
WINCONDITIONS
==============
All TargetBlue on PlayerBlue
All TargetGreen on PlayerGreen
=======
LEVELS
=======
dddd..d
d.d..rd
l......
..d...d
..td..d
td....d
ddd...d
bdd.gtd
.....dd
##ddddddddd
##d.......d
##d.b..dl.d
##d.......d
d.....t...d
##dr....tgd
##ddddddddd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment