Skip to content

Instantly share code, notes, and snippets.

@srpatel
Created November 2, 2022 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srpatel/6cfddd0919f4a71abc74c0a343b846df to your computer and use it in GitHub Desktop.
Save srpatel/6cfddd0919f4a71abc74c0a343b846df to your computer and use it in GitHub Desktop.
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title My Game
author My Name Here
homepage www.puzzlescript.net
debug
verbose_logging
========
OBJECTS
========
Wall #
black
Floor .
gray
Background
gray
Target
darkblue
Bucket B
gray pink darkgrey black
0 0 2 0 0
0 2 1 2 0
0 3 2 3 0
0 3 3 3 0
0 0 3 0 0
BrushW P
gray blue brown
0 1 1 1 0
0 1 1 1 0
0 2 2 2 0
0 0 2 0 0
0 0 2 0 0
BrushA
gray blue brown
0 0 0 0 0
1 1 2 0 0
1 1 2 2 2
1 1 2 0 0
0 0 0 0 0
BrushS
gray blue brown
0 0 2 0 0
0 0 2 0 0
0 2 2 2 0
0 1 1 1 0
0 1 1 1 0
BrushD
gray blue brown
0 0 0 0 0
0 0 2 1 1
2 2 2 1 1
0 0 2 1 1
0 0 0 0 0
OrushW
gray orange brown
0 1 1 1 0
0 1 1 1 0
0 2 2 2 0
0 0 2 0 0
0 0 2 0 0
OrushA
gray orange brown
0 0 0 0 0
1 1 2 0 0
1 1 2 2 2
1 1 2 0 0
0 0 0 0 0
OrushS O
gray orange brown
0 0 2 0 0
0 0 2 0 0
0 2 2 2 0
0 1 1 1 0
0 1 1 1 0
OrushD
gray orange brown
0 0 0 0 0
0 0 2 1 1
2 2 2 1 1
0 0 2 1 1
0 0 0 0 0
RollerW R
gray green brown
0 1 1 1 0
0 1 1 1 2
0 0 0 0 2
0 2 2 2 2
0 2 0 0 0
RollerA
gray green brown
0 2 2 2 0
1 1 0 2 0
1 1 0 2 0
1 1 0 2 2
0 0 0 0 0
RollerS
gray green brown
0 0 0 2 0
2 2 2 2 0
2 0 0 0 0
2 1 1 1 0
0 1 1 1 0
RollerD
gray green brown
0 0 0 0 0
2 2 0 1 1
0 2 0 1 1
0 2 0 1 1
0 2 2 2 0
BrushTail
blue
OrushTail
orange
RollerTail
green
=======
LEGEND
=======
Brush = BrushW or BrushA or BrushS or BrushD
Orush = OrushW or OrushA or OrushS or OrushD
Roller = RollerW or RollerA or RollerS or RollerD
Player = Brush or Orush or Roller or Bucket
Tail = BrushTail or OrushTail or RollerTail
Winnable = Wall or Player or Tail
Paintable = Floor
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Floor
Target
Player, Tail
Wall
======
RULES
======
(Invalid move, can't move anything)
([ > Brush | Tail ] -> CANCEL
[ > Brush | Wall ] -> CANCEL
[ > Roller | Tail ] -> CANCEL
[ > Roller | Wall ] -> CANCEL
[ Tail | > Orush ] -> CANCEL
[ Wall | > Orush ] -> CANCEL)
(Invalid move, only individually)
[ > Brush | NO Paintable ] -> [ Brush | NO Paintable ]
[ NO Paintable | > Orush ] -> [ NO Paintable | Orush ]
[ > Roller | NO Paintable ] -> [ Roller | NO Paintable ]
(Blue Brush -- moves with arrow)
[ Down Brush ] -> [ Down BrushW ]
+ [ Up Brush ] -> [ Up BrushS ]
+ [ Left Brush ] -> [ Left BrushD ]
+ [ Right Brush ] -> [ Right BrushA ]
[ > Brush | Paintable ] -> [ BrushTail | Brush ]
(Orange Brush -- moves opposite to arrow)
[ Down Orush ] -> [ Down OrushS ]
+ [ Up Orush ] -> [ Up OrushW ]
+ [ Left Orush ] -> [ Left OrushA ]
+ [ Right Orush ] -> [ Right OrushD ]
[ Paintable | > Orush ] -> [ Orush | OrushTail ]
(Roller -- moves as far as possible)
[ Down Roller ] -> [ Down RollerW ]
+ [ Up Roller ] -> [ Up RollerS ]
+ [ Left Roller ] -> [ Left RollerD ]
+ [ Right Roller ] -> [ Right RollerA ]
[ > Roller | Paintable | Paintable | Paintable | Paintable | Paintable | Paintable | Paintable | Paintable ] -> [ RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | Roller ]
+ [ > Roller | Paintable | Paintable | Paintable | Paintable | Paintable | Paintable | Paintable ] -> [ RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | Roller ]
+ [ > Roller | Paintable | Paintable | Paintable | Paintable | Paintable | Paintable ] -> [ RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | Roller ]
+ [ > Roller | Paintable | Paintable | Paintable | Paintable | Paintable ] -> [ RollerTail | RollerTail | RollerTail | RollerTail | RollerTail | Roller ]
+ [ > Roller | Paintable | Paintable | Paintable | Paintable ] -> [ RollerTail | RollerTail | RollerTail | RollerTail | Roller ]
+ [ > Roller | Paintable | Paintable | Paintable ] -> [ RollerTail | RollerTail | RollerTail | Roller ]
+ [ > Roller | Paintable | Paintable ] -> [ RollerTail | RollerTail | Roller ]
+ [ > Roller | Paintable ] -> [ RollerTail | Roller ]
([ > Player2 | NO Tail ] -> [ Tail2 | Player2 ])
==============
WINCONDITIONS
==============
(whole grid is painted or wall)
All Background On Winnable
=======
LEVELS
=======
#########
##......#
#.......#
#.......#
#.......#
#......P#
#########
#########
#O......#
#.......#
#.......#
#.......#
#......##
#########
#########
#.......#
#.......#
#..O#P..#
#.......#
#.......#
#########
#########
#.......#
#.......#
#.......#
#.......#
#......R#
#########
##################
#............R...#
#..R.............#
#................#
#................#
#................#
#................#
#..............R.#
#................#
#................#
#......R.........#
##################
#########
#.......#
#.......#
#..P.R..#
#.......#
#.......#
#########
#########
#.......#
#.......#
#..B....#
#.......#
#.......#
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment