Skip to content

Instantly share code, notes, and snippets.

@jayrbolton
Created June 8, 2020 18:34
Show Gist options
  • Save jayrbolton/5dbe24e69fe6b8787c42c89450c75032 to your computer and use it in GitHub Desktop.
Save jayrbolton/5dbe24e69fe6b8787c42c89450c75032 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
#333 lightgreen
00000
01110
01010
01110
00000
bluetarget
#333 #91c3ff
00000
01110
01010
01110
00000
Bluey
#91c3ff
00000
00000
00000
00000
00000
Greeny
lightgreen
00000
00000
00000
00000
00000
RNSEW
darkgray lightgreen darkgreen
22122
20102
11011
20102
22122
blue_nsew
darkgray #91c3ff darkgreen
22122
20102
11011
20102
22122
blueast
darkgray #91c3ff #333
22222
20002
10112
20002
22222
bluewest
darkgray #91c3ff #333
22222
20002
21101
20002
22222
bluesouth
darkgray #91c3ff #333
22122
20002
20102
20102
22222
East
darkgray lightgreen #333
22222
20002
10112
20002
22222
West
darkgray lightgreen #333
22222
20002
21101
20002
22222
North
darkgray lightgreen #333
22222
20102
20102
20002
22122
South
darkgray lightgreen #333
22122
20002
20102
20102
22222
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
greenplayer
lightgreen green darkgreen gray
.000.
.111.
22222
.333.
.3.3.
blueplayer
#91c3ff blue #91c3ff gray
.000.
.111.
22222
.333.
.3.3.
=======
LEGEND
=======
Player = Greenplayer or blueplayer
. = Background
# = Wall
T = Target
U = bluetarget
P = greenplayer
B = blueplayer
A = RNSEW
E = East
W = West
N = North
S = South
0 = blueast
1 = bluesouth
2 = bluewest
3 = blue_nsew
~ = bluey
G = Greeny
X = RNSEW or East or West or North or South or blueast or bluesouth or bluewest or blue_nsew
Y = X or Greeny or Bluey
(moves)
noteast = RNSEW or West or North or South or Greeny or greenplayer
notsouth = RNSEW or West or North or East or Greeny or greenplayer
notnorth = RNSEW or West or South or East or greenplayer
notwest = RNSEW or South or North or East or Greeny or greenplayer
gallmoves = RNSEW or South or North or East or West or Greeny or greenplayer
(What can the blue pieces affect?)
beastmoves = blueplayer or bluesouth or bluey or bluewest or blue_nsew
bwestmoves = blueplayer or bluesouth or blueast or bluey or blue_nsew
bsouthmoves = blueplayer or blueast or bluey or bluewest or blue_nsew
ballmoves = blue_nsew or bluesouth or blueast or bluey or blueplayer
=======
SOUNDS
=======
TitleScreen 95827509
Undo 62574100
Restart 43125100
EndLevel 27943900
StartGame 39983709
Startlevel 97606105
sfx0 99951102
sfx1 63582302
================
COLLISIONLAYERS
================
Background
Target, bluetarget
player, Wall, Y
======
RULES
======
(Push any number of blocks)
[ > player|x] -> [> player|> x]
(all directions, green)
late right [|a|gallmoves] -> [gallmoves|gallmoves|gallmoves]
late right [gallmoves|a|] -> [gallmoves|gallmoves|gallmoves]
late up [|a|gallmoves] -> [gallmoves|gallmoves|gallmoves]
late up [gallmoves|a|] -> [gallmoves|gallmoves|gallmoves]
(all directions, blue)
late right [|blue_nsew|ballmoves] -> [ballmoves|ballmoves|ballmoves]
late right [ballmoves|blue_nsew|] -> [ballmoves|ballmoves|ballmoves]
late up [|blue_nsew|ballmoves] -> [ballmoves|ballmoves|ballmoves]
late up [ballmoves|blue_nsew|] -> [ballmoves|ballmoves|ballmoves]
(Blue copies -- single)
late right [beastmoves|blueast] -> [beastmoves|beastmoves]
late right [bluewest|bwestmoves] -> [bwestmoves|bwestmoves]
late up [bluesouth|bsouthmoves] -> [bsouthmoves|bsouthmoves]
(Single copy directions)
(swaps)
(late right [west|east] -> [east|west] )
(late down [north|south] -> [south|north] )
(normal copies)
late right [west|notwest] -> [notwest|notwest]
late right [noteast|east] -> [noteast|noteast]
late up [notnorth|north] -> [notnorth|notnorth]
late up [south|notsouth] -> [notsouth|notsouth]
startloop
[ > x|x] -> [> x|> x]
endloop
==============
WINCONDITIONS
==============
all target on greeny
all bluetarget on bluey
=======
LEVELS
=======
(templates
##########
#........#
#........#
#........#
#........#
#p.......#
##########
)
message Square to square
######
#g.t.#
#..e.#
#.e..#
#...p#
######
message Watch for doppelgangers
######
#g..t#
#..e.#
#.e.e#
#p...#
######
message From the top
######
#g..p#
#..s.#
#.s..#
#t.s.#
######
message An unwanted friend
#######
#g...t#
##..###
##.e..#
##e.e.#
##.e..#
##b..p#
#######
message Do fish know that we are not swimming?
#########
#~#######
#.#######
#.u.....#
#.0..0..#
#.....1b#
#.......#
#########
message A jackdaw is always found near a jackdaw
######
#.n.t#
#..n.#
#.n..#
#g.e.#
#.e.e#
#....#
#...b#
######
message Walk slowly, you’ll get farther
##########
########G#
#SNNNNNNT#
##.......#
##e.e.e.e#
##.w.w.w.#
#.e.e.e.e#
#b.......#
##########
message One is nineteen, the other is one less than twenty
##########
#G#...T..#
#.#.###..#
#.#.###..#
#s..eeen.#
#...eee..#
#b..eee..#
#...###..#
#...###..#
##########
(TODO multiple players)
message Behind God's back
(Intro to red)
#############
#G..#...#..T#
#...#...#...#
#...a...a...#
#...........#
#.....p.....#
#############
(TODO something with going over/through walls)
(TODO something with red to duplicate green)
(TODO multiple targets!!)
(TODO many more in-between to introduce the red ones)
(TODO dot dot for transporting green from any distance, like a magnet)
message An iron ring made of wood
###########
#........G#
#########.#
#.a.a.a.aT#
#..a.a.a..#
#.........#
#b.a.a.a..#
###########
message As happy as a monkey about its tail
###########
#.........#
#..G...T..#
#.........#
#.........#
###########
#.a..a..a.#
#..a..a..a#
#....b....#
###########
message They grind in two different mills
##########
#g.......#
#p.......#
#p.......#
##########
#.a.a.a..#
#..a.a.a.#
#.....t.b#
##########
message The magpie wants a lot, but its tail can’t carry it all.
###########
##t..b..g##
##.w...a.##
##..w.a..##
##.......##
##..3.3..##
##.3.3.3.##
##3.3.3.3##
###########
message Cat in a sack
###########
##...b...##
##.a...w.##
##..a.w..##
##.......##
##..3.0..##
##.3...0.##
##~.....u##
###########
message To be continued..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment