Skip to content

Instantly share code, notes, and snippets.

@npinsker
Created March 3, 2019 23:08
Show Gist options
  • Save npinsker/e3b73618bb18b90846ba940356da5188 to your computer and use it in GitHub Desktop.
Save npinsker/e3b73618bb18b90846ba940356da5188 to your computer and use it in GitHub Desktop.
Garten der Medusen (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Garten der Medusen
author Stephen Lavelle
homepage www.increpare.com
run_rules_on_level_start
noaction
again_interval 0.03
background_color black
========
OBJECTS
========
Background
black
blood
darkred red
..0..
.010.
01110
.010.
..0..
Medussa_u 1
gray green
..1..
.111.
.010.
00100
.0.0.
Medussa_d 2
gray green
.....
.010.
.010.
01110
.010.
Medussa_l 3
gray green
.....
.100.
1111.
01000
.0.0.
Medussa_r 4
gray green
.....
.001.
.1111
00010
.0.0.
Wall
gray darkgray
00010
11111
01000
11111
00010
Player
yellow orange brown
.000.
.111.
11111
.222.
.2.2.
statue
lightgray gray darkgray
.000.
.111.
11111
.222.
.2.2.
move_up
transparent
move_down
transparent
move_left
transparent
move_right
transparent
move_stop
transparent
T
transparent
Spawner
blue
.000.
00000
00000
00000
00000
light_h
yellow
.....
.....
.000.
.....
.....
light_v
yellow
.....
..0..
..0..
..0..
.....
dontspawn
transparent
=======
LEGEND
=======
medussa = 1 or 2 or 3 or 4
obstacle = player or wall or medussa or statue
. = Background
# = Wall
P = Player
S = Spawner
* = player and spawner
token = move_up or move_down or move_left or move_right or move_stop
light = light_h or light_v
=======
SOUNDS
=======
sfx1 77753704 (kill medusa)
sfx2 22214502 (statue)
================
COLLISIONLAYERS
================
Background
Spawner
blood
light_h
light_v
Player, Wall, Medussa, statue
dontspawn
T
Token
======
RULES
======
random [ ] -> [ t ]
[dontspawn]->[]
[ player ] [ spawner ] -> [ player ] [ spawner dontspawn ]
[ spawner no dontspawn ] [ token ] -> [ spawner no dontspawn ] [ ]
[ spawner no dontspawn ] -> [ spawner player ]
[ light ] -> []
[ up player ] [ T ] -> [ player ] [ T move_up ]
[ down player ] [ T ] -> [ player ] [ T move_down ]
[ left player ] [ T ] -> [ player ] [ T move_left ]
[ right player ] [ T ] -> [ player ] [ T move_right ]
[ move_up ] [ player ] -> [ move_up ] [ up player ] again
[ move_down ] [ player ] -> [ move_down ] [ down player ] again
[ move_left ] [ player ] -> [ move_left ] [ left player ] again
[ move_right ] [ player ] -> [ move_right ] [ right player ] again
[ > player | obstacle ] [ token ] -> [ > player | obstacle ] [ move_stop ]
[ > Player | Medussa ] -> [ > player | blood ] sfx1
[ > player ] [ move_stop ] -> [ player ] [ move_stop ]
[move_stop]->[]
late [ t ] -> [ ]
late up [ 1 | no obstacle ] -> [ 1 | light_v ]
late down [ 2 | no obstacle ] -> [ 2 | light_v ]
late left [ 3 | no obstacle ] -> [ 3 | light_h ]
late right [ 4 | no obstacle ] -> [ 4 | light_h ]
late horizontal [ light_h | no obstacle ] -> [ light_h | light_h ]
late vertical [ light_v | no obstacle ] -> [ light_v | light_v ]
late up [ 1 | player ] -> [ 1 | player light_h ]
late down [ 2 | player ] -> [ 2 | player light_h ]
late left [ 3 | player ] -> [ 3 | player light_h ]
late right [ 4 | player ] -> [ 4 | player light_h ]
late horizontal [ light_h | player ] -> [ light_h | player light_h ]
late vertical [ light_v | player ] -> [ light_v | player light_v ]
late [ player light ] -> [ statue light ] sfx2 again
==============
WINCONDITIONS
==============
No Medussa
=======
LEVELS
=======
message Level 1 von 1
#############
#...........#
#....1.2....#
#..1........#
#..3....2...#
#...2.3.....#
#........2..#
#..3..*..4..#
#...2.......#
#....1.4....#
#...........#
#############
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment