Skip to content

Instantly share code, notes, and snippets.

@blunket
Created October 23, 2019 00:31
Show Gist options
  • Save blunket/7fa516e387ea3a988c19258fac41fb30 to your computer and use it in GitHub Desktop.
Save blunket/7fa516e387ea3a988c19258fac41fb30 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
DoorGreen
#0d2
.0.0.
00.00
.....
00.00
.0.0.
DoorBlue
#09c
.0.0.
00.00
.....
00.00
.0.0.
=======
LEGEND
=======
. = Background
# = Wall
B = PlayerBlue
G = PlayerGreen
L = TargetBlue
R = TargetGreen
D = Lava
T = Sand
8 = DoorBlue
6 = DoorGreen
Player = PlayerBlue or PlayerGreen
=======
SOUNDS
=======
TempSand destroy 98931307
restart 93870504
endlevel 79261700
================
COLLISIONLAYERS
================
Background
TargetBlue, TargetGreen, Lava, Sand, TempSand, DoorGreen, DoorBlue
PlayerGreen, PlayerBlue, Wall
======
RULES
======
[ > Player ] -> [ > Player ]
[ > Player | Lava ] -> restart
[ > Player | Sand ] -> [ > Player | TempSand ]
late [ TempSand no Player ] -> [ Wall ]
[ > PlayerBlue | DoorGreen ] -> [ PlayerBlue | DoorGreen ]
[ > PlayerGreen | DoorBlue ] -> [ PlayerGreen | DoorBlue ]
==============
WINCONDITIONS
==============
All TargetBlue on PlayerBlue
All TargetGreen on PlayerGreen
=======
LEVELS
=======
message Move the players to their corresponding targets.
l###r
.###.
.###.
.###.
b###g
message All players must be on their target at the same time.
####.#
l##.r#
..##.#
#.##.#
b.##g.
message Avoid lava.
#######
l###r..
...##D.
##.###.
b..#g..
#######
l###...
...##D.
D#.#r#.
b..#g..
########
rd#....#
...#dd.#
d#.#l#.#
b...g..d
#####D##
.rD##...
.#.#D.#l
...#..##
##.##.##
##g##b##
#l..D#####.
D.D.####Dr.
###..###D..
####.D##..#
##.B.##G.D#
message Sand tiles will crumble after use. (Press R to restart!)
#...T.D#
#lD##.D#
#####BD#
####D###
.T..G...
#######r
drgt...
##tt.##
####tt#
#b..dld
###....
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
...d..#
.#t.lg#
.d...b#
.t#dddd
..d...d
...rddd
message Only blue may pass through blue doors.
dddddd
d..dbg
dl.d..
d...8.
d..d..
d..r..
d.d..bg.d
dld.....d
d.d.....d
d8d88t88d
d.......d
dr......d
d.d.....d
message Only green may pass through green doors.
.bgd##
...d##
t68ddd
d...ld
dd..dd
dd..dd
dd..rd
gb..dd
.d8.dd
6d...d
rd.d6t
dd....
.l...d
d#####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment