Skip to content

Instantly share code, notes, and snippets.

@jayrbolton
Created May 27, 2020 16:24
Show Gist options
  • Save jayrbolton/786bc16104e43a936664d3eb1ed23905 to your computer and use it in GitHub Desktop.
Save jayrbolton/786bc16104e43a936664d3eb1ed23905 to your computer and use it in GitHub Desktop.
Elements (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Elements
author Bob Ross
homepage www.spacejam.com
========
OBJECTS
========
Background
black
00000
00000
00000
00000
00000
Target
darkgreen lightgreen
00000
01110
01010
01110
00000
Greeny
darkgreen lightgreen
11111
11111
11111
11111
11111
RNSEW
darkgray lightred darkgreen
22122
20102
11011
20102
22122
NSEW
darkgray lightgreen darkgreen
22122
20102
11011
20102
22122
East
darkgray lightgreen darkgreen
22222
20002
00111
20002
22222
REast
darkgray lightred darkgreen
22222
20002
00111
20002
22222
West
darkgray lightgreen darkgreen
22222
20002
11100
20002
22222
North
darkgray lightgreen darkgreen
22122
20102
20102
20002
22022
South
darkgray lightgreen darkgreen
22022
20002
20102
20102
22122
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
Player
Red Orange Pink Blue
.000.
.111.
22222
.333.
.3.3.
=======
LEGEND
=======
. = Background
# = Wall
T = Target
P = Player
A = RNSEW
R = REast
D = NSEW
E = East
W = West
N = North
S = South
G = Greeny
X = RNSEW or NSEW or East or West or North or South or REast
Y = X or Greeny
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Target
Player, Wall, Y
======
RULES
======
(Push any number of blocks)
[ > player|x] -> [> player|> x]
startloop
[ > x|x] -> [> x|> x]
endloop
(Single copy directions)
right [y|east] -> [y|y]
up [y|north] -> [y|y]
down [y|south] -> [y|y]
left [y|west] -> [y|y]
[y|nsew] -> [y|y]
(Exploders)
right [y|reast|||] -> [y|y|y|y|y]
[a|y|] -> [y|y|y]
==============
WINCONDITIONS
==============
all target on greeny
=======
LEVELS
=======
(templates
##########
#........#
#........#
#........#
#........#
#p.......#
##########
)
message Everyone loves a green square
######
#g..t#
#..e.#
#.e.e#
#...p#
######
message Well done.
######
#g...#
#..s.#
#.s..#
#t.sp#
######
message Do fish know that they are swimming?
#######
#g...t#
##..###
##.e..#
##e.e.#
##.e..#
##p...#
#######
message Do fish know that we are not swimming?
########
#g######
#.######
#.t....#
#.e.e..#
#....s.#
#p.....#
########
message A jackdaw is always found near a jackdaw
######
#.n.t#
#..n.#
#.n..#
#g.e.#
#.e.e#
#....#
#...p#
######
message As happy as a monkey about its tail
##########
########G#
#SNNNNNNT#
##.......#
##e.e.e.e#
##.w.w.w.#
#.e.e.e.e#
#p.......#
##########
(TODO something with NSEW)
(TODO something with going over/through walls)
(TODO something with red to duplicate green)
message Behind God's back
(Intro to red)
#############
#.G.#...#.T.#
#...#...#...#
#...R...R...#
#...........#
#p..........#
#############
(TODO many more in-between to introduce the red ones)
message Make T, but watch out for volatile O...
###########
#........G#
#########.#
#.a.a.a.aT#
#..a.a.a..#
#.......a.#
#p.a.a.a..#
###########
(TODO remove test)
###########
#........G#
#########.#
#.W.E.N.S.#
#..A......#
#.A.......#
#p........#
###########
(TODO dot dot for transporting green from any distance)
message To be continued..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment