Created
September 1, 2014 16:07
-
-
Save anonymous/3c5b92cb3869f926e894 to your computer and use it in GitHub Desktop.
title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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