Skip to content

Instantly share code, notes, and snippets.

@lyudenn
Created October 8, 2019 21:14
Show Gist options
  • Select an option

  • Save lyudenn/fe1448d097e3c09796a40c3cb452af61 to your computer and use it in GitHub Desktop.

Select an option

Save lyudenn/fe1448d097e3c09796a40c3cb452af61 to your computer and use it in GitHub Desktop.
Miner Guy (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Miner Guy
author Dennis M.
homepage www.puzzlescript.net
again_interval 0.05
realtime_interval 0.05
========
OBJECTS
========
Background
gray
00000
00000
00000
00000
00000
Bomb
blackwhiteyellow
...1.
..1..
.000.
00000
.000.
bomb2
blackwhiteyellowred
...3.
..2..
.000.
00000
.000.
Bomb3
blackwhiteyellow
.1...
..1..
.000.
00000
.000.
bomb4
blackwhiteyellowred
.3...
..2..
.000.
00000
.000.
explo1
whiteredyellow
00000
00001
00012
00122
01222
explo2
whiteredyellow
01222
00122
00012
00001
00000
explo3
whiteredyellow
22210
22100
21000
10000
00000
explo4
whiteredyellow
00000
10000
21000
22100
22210
explocion
redyellow
..0..
.010.
01110
.010.
..0..
Target1
whiteRed
0...0
.111.
.101.
.111.
0...0
Target2
whitelightgray
0...0
.111.
.1.1.
.111.
0...0
HUD1
whiteblack
10000
00000
00000
00000
00000
HUD2
whiteblack
00001
00000
00000
00000
00000
HUD3
whiteblack
00000
00000
00000
00000
10000
HUD4
whiteblack
00000
00000
00000
00000
00001
Rock
BROWNBlack
00000
01110
00010
00110
00000
Rock2
greyblack
11111
10111
10101
10001
11111
Player
blackdarkblueRedlightredlightgreybrown
PlayerRight
blackdarkblueRedlightredlightgreybrown
55...
33444
2225.
11.5.
00...
PlayerDown
blackdarkblueRedLightredlightgreybrown
.555.
.333.
24442
22522
.050.
PlayerLeft
blackdarkblueRedLightredlightgreybrown
...55
44433
.5222
.5.11
...00
PlayerUp
blackdarkredRedLightredlightgreybrown
.555.
.333.
22222
21112
.0.0.
PlayerDead
blackdarkblueRedLightredlightgreybrown
..22.
53215
5321.
53215
..22.
Cristal
white
.....
00000
.000.
..0..
.....
Topacio
Red lightgray
.....
01110
00000
00000
.....
BallestaDown
blackgreybrown
..0..
..0..
0.0.0
.000.
..0..
BallestaUp
blackgreybrown
..0..
.000.
0.0.0
..0..
..0..
ArrowUp
white
.....
..0..
..0..
..0..
.....
ArrowDown
white
.....
..0..
..0..
..0..
.....
ArrowLeft
white
.....
.....
.000.
.....
.....
ArrowRight
white
.....
.....
.000.
.....
.....
ArrowCollision
white
.....
..0..
.000.
..0..
.....
ArrowTrapUpReady
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
.123.
0.2.4
..2..
..2..
ArrowTrapUpArmed
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
.153.
0.5.4
..5..
..2..
ArrowTrapUpFired
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
01234
..2..
..2..
..2..
ArrowTrapUpFired2
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
.123.
0.2.4
..2..
..2..
ArrowTrapUpFired3
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
.....
..2..
.123.
0.2.4
..2..
ArrowTrapUpRearming
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
.....
.....
..2..
.123.
0.2.4
ArrowTrapUpRearming2
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
.....
..2..
.123.
0.2.4
..2..
ArrowTrapDownReady
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
..2..
0.2.4
.123.
..2..
ArrowTrapDownArmed
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
..5..
0.5.4
.153.
..2..
ArrowTrapDownFired
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
..2..
..2..
01234
..2..
ArrowTrapDownFired2
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
..2..
0.2.4
.123.
..2..
ArrowTrapDownFired3
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
0.2.4
.123.
..2..
.....
ArrowTrapDownRearming
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
0.2.4
.123.
..2..
.....
.....
ArrowTrapDownRearming2
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..2..
0.2.4
.123.
..2..
.....
ArrowTrapLeftReady
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..0..
.1...
22222
.3...
..4..
ArrowTrapLeftArmed
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..0..
.1...
25552
.3...
..4..
ArrowTrapLeftFired
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
.0...
.1...
22222
.3...
.4...
ArrowTrapLeftFired2
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..0..
.1...
22222
.3...
..4..
ArrowTrapLeftFired3
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
...0.
..1..
.2222
..3..
...4.
ArrowTrapLeftRearming
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
....0
...1.
..222
...3.
....4
ArrowTrapLeftRearming2
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
...0.
..1..
.2222
..3..
...4.
ArrowTrapRightReady
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..0..
...1.
22222
...3.
..4..
ArrowTrapRightArmed
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..0..
...1.
25552
...3.
..4..
ArrowTrapRightFired
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
...0.
...1.
22222
...3.
...4.
ArrowTrapRightFired2
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
..0..
...1.
22222
...3.
..4..
ArrowTrapRightFired3
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
.0...
..1..
2220.
..3..
.4...
ArrowTrapRightRearming
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
0....
.1...
222..
.3...
4....
ArrowTrapRightRearming2
DarkBrown DarkBrown DarkBrown DarkBrown DarkBrown white
.0...
..1..
2220.
..3..
.4...
LOS
black
=======
LEGEND
=======
TriggersArrow = Player
- = LOS
P = Player or PlayerDown or PlayerRight or PlayerLeft or PlayerUp
1 = PlayerDown
2 = PlayerUp
. = Background
# = rock
* = Cristal
@ = Cristal and Target1
O = Target1
t = Target2
Q = Topacio and Target2
R = Topacio
B = bomb
5 = Rock2
6 = bomb2
7 = explocion
8 = Bomb3
9 = bomb4
· = HUD1
$ = HUD2
% = HUD3
& = HUD4
/ = explo1
a = explo2
s = explo3
d = explo4
n = PlayerDead
k = BallestaUp
x = BallestaDown
Arrow = ArrowUp or ArrowDown or ArrowLeft or ArrowRight
ñ = ArrowCollision
Solid = rock or rock2
ArrowTrapReady = ArrowTrapUpReady or ArrowTrapDownReady or ArrowTrapLeftReady or ArrowTrapRightReady
ArrowTrapArmed = ArrowTrapLeftArmed or ArrowTrapRightArmed or ArrowTrapUpArmed or ArrowTrapDownArmed
ArrowTrapRearming = ArrowTrapLeftRearming or ArrowTrapRightRearming or ArrowTrapUpRearming or ArrowTrapDownRearming
ArrowTrapRearming2 = ArrowTrapLeftRearming2 or ArrowTrapRightRearming2 or ArrowTrapUpRearming2 or ArrowTrapDownRearming2
ArrowTrapLeftFiredAny = ArrowTrapLeftFired or ArrowTrapLeftFired2 or ArrowTrapLeftFired3
ArrowTrapRightFiredAny = ArrowTrapRightFired or ArrowTrapRightFired2 or ArrowTrapRightFired3
ArrowTrapUpFiredAny = ArrowTrapUpFired or ArrowTrapUpFired2 or ArrowTrapUpFired3
ArrowTrapDownFiredAny = ArrowTrapDownFired or ArrowTrapDownFired2 or ArrowTrapDownFired3
ArrowTrapFiredAnim = ArrowTrapLeftFired or ArrowTrapLeftFired2 or ArrowTrapLeftFired3 or ArrowTrapRightFired or ArrowTrapRightFired2 or ArrowTrapRightFired3 or ArrowTrapUpFired or ArrowTrapUpFired2 or ArrowTrapUpFired3 or ArrowTrapDownFired or ArrowTrapDownFired2 or ArrowTrapDownFired3
ArrowTrapAny = ArrowTrapReady or ArrowTrapArmed or ArrowTrapRearming or ArrowTrapRearming2 or ArrowTrapFiredAnim
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Target1, Target2, HUD1, hud2, hud3, hud4, LOS
explo1, explo2, explo3, explo4
Player, PlayerRight,PlayerDown, PlayerLeft, PlayerUp, Rock, Cristal, Topacio, bomb, rock2, bomb2, explocion, bomb3, bomb4, PlayerDead, BallestaDown, BallestaUp, Arrow, ArrowCollision, ArrowTrapAny, arrow
======
RULES
======
(bomba1 choca con pared y explota)
[Playerup| bomb | | rock2] [HUD1][HUD2][HUD3][HUD4 ] -> [ | Playerup | bomb2 | rock2 ] [explo1][explo4][explo2][explo3]
late [player] [bomb2|rock2] -> [Player] [ explocion|rock2]
[> player | explocion] -> [PlayerDead | ] message You died!
[ explocion | Rock2 ][explo1][explo4][explo2][explo3] -> [ | ][HUD1][HUD2][HUD3][HUD4 ]
(bomba3 choca con pared y explota)
[Playerdown | bomb3 | | rock2] [HUD1][HUD2][HUD3][HUD4 ] -> [ | PlayerUp | bomb4 | rock2 ] [explo1][explo4][explo2][explo3]
late [player] [bomb4|rock2] -> [Player] [ explocion|rock2]
[> player | explocion] -> [PlayerDead | ] message You died!
[ explocion | Rock2 ] [explo1][explo4][explo2][explo3] -> [ | ] [HUD1][HUD2][HUD3][HUD4 ]
(movimientos de personaje y cristales)
RIGHT [ right PlayerRight | Cristal ] -> [ right PlayerRight | right Cristal ]
RIGHT [ right PlayerRight | Topacio ] -> [ right PlayerRight | right Topacio ]
DOWN [ down PlayerDown | Cristal ] -> [ down PlayerDown | down Cristal ]
DOWN [ down PlayerDown | Topacio ] -> [ down PlayerDown | down Topacio ]
left [ left PlayerLeft | Cristal ] -> [ left PlayerLeft | left Cristal ]
Left [ left PlayerLeft | Topacio ] -> [ left PlayerLeft | left Topacio ]
UP [ up PlayerUp | Cristal ] -> [ up PlayerUp | up Cristal ]
UP [ up PlayerUp | Topacio ] -> [ up PlayerUp | up Topacio ]
(personaje mueve bomba)
RIGHT [ right PlayerRight | Bomb ] -> [ right PlayerRight | right Bomb ]
DOWN [ down PlayerDown | Bomb ] -> [ down PlayerDown | down Bomb ]
left [ left PlayerLeft | Bomb ] -> [ left PlayerLeft | left Bomb ]
UP [ up PlayerUp | Bomb ] -> [ up PlayerUp | up Bomb]
(personaje mueve bomba3)
RIGHT [ right PlayerRight | Bomb3 ] -> [ right PlayerRight | right Bomb3 ]
DOWN [ down PlayerDown | Bomb3 ] -> [ down PlayerDown | down Bomb3 ]
left [ left PlayerLeft | Bomb3 ] -> [ left PlayerLeft | left Bomb3 ]
UP [ up PlayerUp | Bomb3 ] -> [ up PlayerUp | up Bomb3]
(personaje mueve bomba de una vez, similar al comando de abajo)
left [ > PlayerUp | Bomb ] -> [ left PlayerLeft | left Bomb ]
left [> Playerright | Bomb ] -> [ left PlayerLeft | left Bomb]
left [> PlayerDown | Bomb ] -> [ left PlayerLeft | left Bomb]
right [> PlayerDown |Bomb ] -> [ right PlayerRight | right Bomb]
right [> PlayerLeft | Bomb ] -> [ right PlayerRight | right Bomb]
right [> PlayerUp | Bomb] -> [ right PlayerRight | right Bomb]
up [> PlayerRight | Bomb] -> [up PlayerUp | up Bomb]
up [> PlayerDown | Bomb] -> [up PlayerUp | up Bomb]
up [> PlayerLeft | Bomb] -> [up PlayerUp | up Bomb]
down [> PlayerRight | Bomb ] -> [down PlayerDown | down Bomb]
down [> PlayerUp | Bomb ] -> [down PlayerDown | down Bomb]
down [> PlayerLeft | Bomb ] -> [down PlayerDown | down Bomb]
(personaje mueve bomba3 de una vez, similar al comando de abajo)
left [ > PlayerUp | Bomb3 ] -> [ left PlayerLeft | left Bomb3 ]
left [> Playerright | Bomb3 ] -> [ left PlayerLeft | left Bomb3]
left [> PlayerDown | Bomb3 ] -> [ left PlayerLeft | left Bomb3]
right [> PlayerDown |Bomb3 ] -> [ right PlayerRight | right Bomb3]
right [> PlayerLeft | Bomb3 ] -> [ right PlayerRight | right Bomb3]
right [> PlayerUp | Bomb3] -> [ right PlayerRight | right Bomb3]
up [> PlayerRight | Bomb3] -> [up PlayerUp | up Bomb3]
up [> PlayerDown | Bomb3] -> [up PlayerUp | up Bomb3]
up [> PlayerLeft | Bomb3] -> [up PlayerUp | up Bomb3]
down [> PlayerRight | Bomb3 ] -> [down PlayerDown | down Bomb3]
down [> PlayerUp | Bomb3 ] -> [down PlayerDown | down Bomb3]
down [> PlayerLeft | Bomb3 ] -> [down PlayerDown | down Bomb3]
(movimientos que al estar en distinta posición mueva la piedra de una vez.)
left [ > PlayerUp | Topacio ] -> [ left PlayerLeft | left topacio ]
left [> Playerright | Topacio ] -> [ left PlayerLeft | left Topacio]
left [> PlayerDown | Topacio ] -> [ left PlayerLeft | left Topacio]
left [ > PlayerUp | Cristal ] -> [ left PlayerLeft | left Cristal ]
left [> Playerright | Cristal ] -> [ left PlayerLeft | left Cristal ]
left [> PlayerDown | Cristal ] -> [ left PlayerLeft | left Cristal ]
right [> PlayerDown | topacio ] -> [ right PlayerRight | right Topacio]
right [> PlayerLeft | Topacio ] -> [ right PlayerRight | right Topacio]
right [> PlayerUp | Topacio ] -> [ right PlayerRight | right Topacio]
right [> PlayerDown | Cristal ] -> [ right PlayerRight | right Cristal]
right [> PlayerLeft | Cristal ] -> [ right PlayerRight | right Cristal]
right [> PlayerUp | Cristal] -> [ right PlayerRight | right Cristal]
up [> PlayerRight | Topacio] -> [up PlayerUp | up Topacio]
up [> PlayerDown | Topacio] -> [up PlayerUp | up Topacio]
up [> PlayerLeft | Topacio] -> [up PlayerUp | up Topacio]
up [> PlayerRight | Cristal] -> [up PlayerUp | up Cristal]
up [> PlayerDown | Cristal] -> [up PlayerUp | up Cristal]
up [> PlayerLeft | Cristal] -> [up PlayerUp | up Cristal]
down [> PlayerRight | Topacio ] -> [down PlayerDown | down Topacio]
down [> PlayerUp | Topacio ] -> [down PlayerDown | down Topacio]
down [> PlayerLeft | Topacio ] -> [down PlayerDown | down Topacio]
down [> PlayerRight | Cristal ] -> [down PlayerDown | down Cristal]
down [> PlayerUp | Cristal ] -> [down PlayerDown | down Cristal]
down [> PlayerLeft | Cristal ] -> [down PlayerDown | down Cristal]
(cambios de imagen del personaje al moverse)
right [ > PlayerDown ] -> [ right PlayerRight]
right [ > PlayerLeft ] -> [ right PlayerRight ]
right [ > PlayerUp ] -> [right PlayerRight ]
left [ > PlayerRight] -> [ left PlayerLeft]
left [ > PlayerDown] -> [ left PlayerLeft]
left [ > PlayerUp ] -> [ left PlayerLeft]
up [ > PlayerRight ] -> [up PlayerUp ]
up [ > PlayerDown ] -> [up PlayerUp ]
up [ > PlayerLeft ] -> [up PlayerUp ]
down [ > PlayerRight ] -> [down PlayerDown]
down [ > PlayerLeft ] -> [down PlayerDown ]
down [ > PlayerUp ] -> [down PlayerDown ]
(flechas)
[ stationary ArrowUp ] -> [ up ArrowUp ]
[ stationary ArrowDown ] -> [ down ArrowDown ]
[ stationary ArrowLeft ] -> [ left ArrowLeft ]
[ stationary ArrowRight ] -> [ right ArrowRight ]
[ > Arrow | Player ] -> [ | PlayerDead ] again
[ > Arrow | no Solid no Arrow ] -> [ | Arrow ] (again)
[ > Arrow | no Solid no Arrow ] -> [ | Arrow ] (again)
+ [ > Arrow | stationary Arrow ] -> [ | ArrowCollision ] (again)
[ action ArrowTrapUpReady ] -> [ ArrowTrapUpReady up LOS ]
[ action ArrowTrapDownReady ] -> [ ArrowTrapDownReady down LOS ]
[ action ArrowTrapLeftReady ] -> [ ArrowTrapLeftReady left LOS ]
[ action ArrowTrapRightReady ] -> [ ArrowTrapRightReady right LOS ]
[ > LOS | Solid ] -> [ | Solid ]
+ [ > LOS | no Solid no LOS no TriggersArrow ] -> [ | > LOS ]
[ > LOS | TriggersArrow ] -> [ < LOS | TriggersArrow ]
[ > LOS no ArrowTrapReady | no Solid no LOS ] -> [ | > LOS ]
[ > LOS no ArrowTrapReady | ArrowTrapReady ] -> [ | LOS ArrowTrapReady ]
[ LOS ArrowTrapUpReady ] -> [ ArrowTrapUpArmed ]
[ LOS ArrowTrapDownReady ] -> [ ArrowTrapDownArmed ]
[ LOS ArrowTrapLeftReady ] -> [ ArrowTrapLeftArmed ]
[ LOS ArrowTrapRightReady ] -> [ ArrowTrapRightArmed ]
[ LOS ] -> []
[ action ArrowTrapUpFiredAny ] -> [ ArrowTrapUpRearming2 ]
[ action ArrowTrapDownFiredAny ] -> [ ArrowTrapDownRearming2 ]
[ action ArrowTrapLeftFiredAny ] -> [ ArrowTrapLeftRearming2 ]
[ action ArrowTrapRightFiredAny ] -> [ ArrowTrapRightRearming2 ]
[ action ArrowTrapUpRearming ] -> [ ArrowTrapUpRearming2 ]
[ action ArrowTrapDownRearming ] -> [ ArrowTrapDownRearming2 ]
[ action ArrowTrapLeftRearming ] -> [ ArrowTrapLeftRearming2 ]
[ action ArrowTrapRightRearming ] -> [ ArrowTrapRightRearming2 ]
[ action ArrowTrapUpRearming2 ] -> [ ArrowTrapUpReady ]
[ action ArrowTrapDownRearming2 ] -> [ ArrowTrapDownReady ]
[ action ArrowTrapLeftRearming2 ] -> [ ArrowTrapLeftReady ]
[ action ArrowTrapRightRearming2 ] -> [ ArrowTrapRightReady ]
==============
WINCONDITIONS
==============
All Target2 on Cristal
all Target1 on Topacio
=======
LEVELS
=======
message Lets start!
#o##t#
#.##.#
#.##.#
#r##*#
#....#
#....#
#.1..#
######
message Next round
#########
#o..#...#
#..##.r.#
#.##....#
#.....###
#......t#
####..###
#..#....#
#.*.....#
#.....#1#
#########
message Careful with bombs!
###############
#..#...o...#..#
#.b#.##5##.#..#
#..#.......#..#
#.............#
###.###.###.###
#.............#
#.*...#.#.#.#.#
##..#......2..#
#.r...#.#.#.#.#
#.............#
##...##########
#......#...#..#
####.......#.t#
#·$#.8.#...5..#
#%&#...#...#..#
###############
message Avoid projectiles!
#####x#####x#########
#................#..#
#.r...............2.#
#................#..#
##.##x##k##x##k######
#...................#
#.b...............o.#
#...................#
##5#####k###k##k##5##
#...................#
#.*.................#
#...................#
#..#####x###x########
#...................#
#.................t.#
#......#...#...#....#
####...#...#...#.##.#
#·$#...#...#...#....#
#%&#................#
##########k###k######
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment