Skip to content

Instantly share code, notes, and snippets.

Created September 1, 2014 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/3c5b92cb3869f926e894 to your computer and use it in GitHub Desktop.
Save anonymous/3c5b92cb3869f926e894 to your computer and use it in GitHub Desktop.
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Space Invader Generator
author Ryan Hitchman
homepage https://the8bitpimp.wordpress.com/2013/05/07/space-invader-generator/
run_rules_on_level_start
debug
again_interval 0
========
OBJECTS
========
Background
Black
Frame
DarkGrey
Pixel
White
1
Red
2
Red
3
Red
Top
Transparent
Bottom
Transparent
Player
Blue
=======
LEGEND
=======
. = Background
# = Frame
T = Frame and Top
E = Bottom
P = Player
Num = 1 or 2 or 3
A = 1 and Top
B = 2 and Top
C = 3 and Top
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Player
Top, Bottom
Num
Background
Frame
Pixel
======
RULES
======
[action Player] -> restart
startloop
[ stationary Num no Bottom ] -> [ randomDir Num ]
[ vertical Num ] -> [ Num Pixel ]
[ moving Num ] -> [ Num ]
( mirror )
right [ 1 Pixel | | | | ] -> [ 1 Pixel | | | | Pixel ]
right [ 2 Pixel | | ] -> [ 2 Pixel | | Pixel ]
[ Num no Bottom ] -> [ down Num ]
down [ down Num | ] -> [ | Num ]
endloop
==============
WINCONDITIONS
==============
=======
LEVELS
=======
#########################################
#P......................................#
#.ABC.....ABC.....ABC.....ABC.....ABC...#
#.......................................#
#.......................................#
#.......................................#
#.......................................#
#.EEEEE...EEEEE...EEEEE...EEEEE...EEEEE.#
#.......................................#
#.......................................#
#.ABC.....ABC.....ABC.....ABC.....ABC...#
#.......................................#
#.......................................#
#.......................................#
#.......................................#
#.EEEEE...EEEEE...EEEEE...EEEEE...EEEEE.#
#.......................................#
#.......................................#
#.ABC.....ABC.....ABC.....ABC.....ABC...#
#.......................................#
#.......................................#
#.......................................#
#.......................................#
#.EEEEE...EEEEE...EEEEE...EEEEE...EEEEE.#
#.......................................#
#P......................................#
#.ABC.....ABC.....ABC.....ABC.....ABC...#
#.......................................#
#.......................................#
#.......................................#
#.......................................#
#.EEEEE...EEEEE...EEEEE...EEEEE...EEEEE.#
#########################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment