Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Created February 29, 2020 00:08
Show Gist options
  • Select an option

  • Save jcmiller11/2a23e997e4967cfacff5cf12efe61fdf to your computer and use it in GitHub Desktop.

Select an option

Save jcmiller11/2a23e997e4967cfacff5cf12efe61fdf to your computer and use it in GitHub Desktop.
test (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title test
author katelyn delta jc'sdarkversion
homepage www.puzzlescript.net
run_rules_on_level_start
========
OBJECTS
========
Background
GREEN
Target
DarkBlue
Wall
BROWN
p1
Blue
Crate
Orange
camera
red
wintile
lightgreen
darkness
black
lightmarker
transparent
=======
LEGEND
=======
. = Background
# = Wall
P = p1
* = Crate
@ = Crate and Target
O = Target
x = camera
player = camera
w = wintile
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Target wintile
camera, p1, Wall, Crate
darkness
lightmarker
======
RULES
======
[lightmarker] -> []
[darkness] -> []
[ > player ] [ p1 ] -> [ player] [> p1]
[ > p1 | camera ] -> [ > p1 | > camera]
[ no p1 | > camera ] -> [ no p1 | camera ]
LATE [] -> [darkness]
LATE [player darkness] -> [player lightmarker]
LATE horizontal [player|] -> [player|lightmarker]
LATE horizontal [player||] -> [player|lightmarker|lightmarker]
LATE horizontal [player|||] -> [player|lightmarker|lightmarker|lightmarker]
LATE vertical [lightmarker|] -> [lightmarker|no darkness]
LATE vertical [lightmarker||] -> [lightmarker|no darkness|no darkness]
LATE vertical [lightmarker|||] -> [lightmarker|no darkness|no darkness|no darkness]
LATE [lightmarker darkness] -> []
==============
WINCONDITIONS
==============
all p1 on wintile
=======
LEVELS
=======
#####################
###.....#############
###.....#############
###...............###
###.....####.####.###
###w....####.####.###
##########.....##.###
##########.....##.###
##########.px.....###
##########.....######
##########.....######
#####################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment