Skip to content

Instantly share code, notes, and snippets.

@octoConnors
Created August 3, 2019 04:47
Show Gist options
  • Select an option

  • Save octoConnors/29284a530906d9282146c20b010d83ee to your computer and use it in GitHub Desktop.

Select an option

Save octoConnors/29284a530906d9282146c20b010d83ee to your computer and use it in GitHub Desktop.
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title My Game
author My Name Here
homepage www.puzzlescript.net
run_rules_on_level_start
========
OBJECTS
========
Background
DARKGREEN
wall
BROWN
gen
transparent
00000
00000
00000
00000
00000
player
blue
.000.
.000.
00000
.000.
.0.0.
target
green
room
transparent
roomv
transparent
=======
LEGEND
=======
. = Background
# = Wall
p = player and gen
o = target
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
target
wall, player
gen
room,roomv
======
RULES
======
startloop
random [gen| | | |no gen] -> [gen|no wall|no wall|no wall|gen no wall]
endloop
vertical [wall|gen|wall] -> [wall|up gen|wall]
horizontal [up gen|wall] -> [room|wall]
horizontal[wall|gen|wall] -> [wall|right gen|wall]
vertical[right gen|wall] -> [room|wall]
random [gen] -> [room]
random [gen] -> [room]
random [gen] -> [room]
random [gen] -> [room]
random [gen] -> [room]
horizontal [ |room| ] -> [roomv|roomv|roomv]
vertical [ |roomv| ] -> [no wall|no wall|no wall]
horizontal [gen] [no wall|wall|no wall] -> [gen] [ |right wall| ]
vertical [wall|right wall|no wall] -> [wall| | ]
vertical [gen] [no wall|wall|no wall] -> [gen] [ |up wall| ]
horizontal [wall|up wall|no wall] -> [wall| | ]
[moving wall] -> [stationary wall]
[room] -> [ ]
[gen] -> [ ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
###########################
###########################
###########################
#######################o###
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###########################
###p#######################
###########################
###########################
###########################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment