Skip to content

Instantly share code, notes, and snippets.

@Draknek
Forked from anonymous/readme.txt
Created September 28, 2017 13:52
Show Gist options
  • Save Draknek/b3b7723ea16da021a56d12bd3f55879c to your computer and use it in GitHub Desktop.
Save Draknek/b3b7723ea16da021a56d12bd3f55879c to your computer and use it in GitHub Desktop.
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Match-2-connect-all
homepage www.puzzlescript.net
(verbose_logging)
========
OBJECTS
========
Background
LIGHTGREEN GREEN
11111
01111
11101
11111
10111
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
Player
Black Orange White Blue
.000.
.111.
22222
.333.
.3.3.
Blue
Blue
00000
0...0
0...0
0...0
00000
Red
Red
00000
0...0
0...0
0...0
00000
Yellow
Yellow
00000
0...0
0...0
0...0
00000
HoleEmpty
darkblue
HoleRed
Red red
00000
01110
01110
01110
00000
HoleBlue
Blue blue
00000
01110
01110
01110
00000
HoleYellow
Yellow yellow
00000
01110
01110
01110
00000
Disappearing
White
.....
.....
..0..
.....
.....
connected
white
failed
transparent
falling
transparent
=======
LEGEND
=======
Crate = Blue or Red or Yellow
HoleFull = HoleRed or HoleBlue or HoleYellow
Solid = Wall
. = Background
# = Wall
P = Player
b = blue
a = red
c = yellow
_ = holeEmpty
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
HoleEmpty, HoleFull
Player, Wall, Crate
Disappearing, connected, failed, falling
======
RULES
======
[ Disappearing ] -> [] again
[ > Player HoleEmpty | no HoleEmpty no HoleFull ] -> [ Player HoleEmpty | ]
[ > Player | Crate ] -> [ > Player | > Crate ]
[ > Player HoleEmpty | HoleFull ] -> [ > Player HoleEmpty | > HoleFull ]
[ moving Crate | stationary Crate ] -> [ moving Crate | moving Crate ]
[ moving HoleFull | stationary HoleFull ] -> [ moving HoleFull | moving HoleFull ]
[ moving Crate stationary HoleFull ] -> [ moving crate moving holeFull ]
[ stationary Crate moving HoleFull ] -> [ moving crate moving holeFull ]
[ > Crate | Solid ] -> cancel
[ > HoleFull | no HoleEmpty no HoleFull ] -> cancel
[ > Crate | no Crate no Solid no Player ] -> [ | Crate ]
+ [ > HoleFull | HoleEmpty ] -> [ HoleEmpty | HoleFull ]
+ [ > Player | no Crate no Solid ] -> [ | Player ]
(matching)
[ Red HoleRed ] -> [ Disappearing Red HoleRed ] again
[ Blue HoleBlue ] -> [ Disappearing Blue HoleBlue ] again
[ Yellow HoleYellow ] -> [ Disappearing Yellow HoleYellow ] again
[ Red | Red ] -> [ Red Disappearing | Red Disappearing ] again
[ Blue | Blue ] -> [ Blue Disappearing | Blue Disappearing ] again
[ Yellow | Yellow ] -> [ Yellow Disappearing | Yellow Disappearing ] again
random [ disappearing ] [ wall ] -> [ disappearing ] [ wall failed ]
[ Disappearing Red HoleRed ] -> [ Disappearing HoleEmpty ]
[ Disappearing Blue HoleBlue ] -> [ Disappearing HoleEmpty ]
[ Disappearing Yellow HoleYellow ] -> [ Disappearing HoleEmpty ]
[ Disappearing Crate ] -> [ Disappearing ]
(connectedness)
random [ crate ] -> [ crate connected ]
[ failed ] [ connected ] -> [ failed ] []
[ connected crate | crate no connected ] -> [ connected crate | connected crate ]
[ crate no connected ] [ crate connected ] -> [ crate ] [ crate ]
[ crate connected ] -> win
[ connected ] -> []
(falling)
startloop
random [ HoleEmpty stationary Crate ] -> [ HoleEmpty Falling action Crate ]
[ Falling Crate | no Falling Crate ] -> [ Falling Crate | Falling action Crate ]
[ Falling no HoleEmpty ] [ Falling HoleEmpty ] -> [ Falling ] [ HoleEmpty ]
[ Falling no HoleEmpty ] -> []
[ Falling Red HoleEmpty ] -> [ HoleRed ]
[ Falling Blue HoleEmpty ] -> [ HoleBlue ]
[ Falling Yellow HoleEmpty ] -> [ HoleYellow ]
endloop
==============
WINCONDITIONS
==============
no crate
=======
LEVELS
=======
#########
#p......#
#.a.b.a.#
#.......#
#.b.a.b.#
#.......#
#########
#########
####....#
####..b.#
####pa..#
#..b.####
#.a..####
#....####
#########
#########
##..a..##
##.....##
##..p..##
#.b...b.#
#..a#a..#
#..###..#
#########
##############
###........###
###.c....c.###
###...ab...###
#b.p........a#
###...ab...###
###.c....c.###
###........###
##############
###########
#.....#a.##
#..b.p....#
#b.a..a.b.#
#..b......#
#.....#b.##
###########
########
#p..a..#
#......#
#b.ba.a#
#......#
#..b...#
########
#############
#....#......#
#.....b.....#
#.ca.aca.ac.#
#.....b.....#
#......#..p.#
#############
#########
####..p##
#....b.##
#.ba...a#
#..b.a.##
#b.....##
#########
#########
#.......#
#a..b..a#
#.......#
#.abpba.#
#b#...#b#
#a.....a#
#########
###########
#..a.a.a..#
#.b.....b.#
##...p...##
##.......##
##.a.a.a.##
##.......##
####.a.####
#####b#####
#####a#####
###########
#############
#.c...#...c.#
#...bcbac...#
#...........#
#...cabcb...#
#.c...#...p.#
#############
###########
###a#c#a###
#.........#
#..b.c.b..#
#..c.b.c..#
#.........#
#..a.c.a..#
#...apa...#
###########
(message Blocks disappear if they match, remove all to win
#########
#.......#
#b..a..a#
#.......#
#b..p..a#
#.......#
#########
message Blocks stick together if they don't match
#########
##.....##
##.....##
#b.a.b.a#
##.....##
##..p..##
#########)
(###########
#.......###
#....b..###
#.ba.....a#
#..b..p.###
#b......###
###########)
(###########
#######..##
#.....#ab##
#........##
#..a.p.a.b#
#..b.....##
#.....#b###
###########)
(#############
#####...#####
#..#a.b.a#..#
#..a.....a..#
#.....p.....#
##.........##
##...b.b...##
#############)
(##########
#.......a#
#.b......#
#...ba...#
#......a.#
#b...p...#
##########)
(##########
#....p...#
#..b.....#
#.bab.ba.#
#..b.....#
#........#
##########)
(###########
#######..##
#.....#ab##
#..b.....##
#b.a.p.a.b#
#..b.....##
#.....#b.##
###########)
(##########
#.p......#
#...ba...#
#.b....a.#
#........#
#..a..b..#
##########)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment