Skip to content

Instantly share code, notes, and snippets.

@jjmajava
Last active August 29, 2015 14:13
Show Gist options
  • Save jjmajava/f731a8f5f606a504814f to your computer and use it in GitHub Desktop.
Save jjmajava/f731a8f5f606a504814f to your computer and use it in GitHub Desktop.
Lineshooter
title Kind of like a ring on a rail or something
========
OBJECTS
========
Background
black
Wall
black
Player
lightred red darkred
.111.
12.21
1...1
12.21
.111.
EdgeL
Purple darkblue
01...
01...
01...
01...
01...
EdgeR
Purple darkblue
...10
...10
...10
...10
...10
EdgeB
Purple darkblue
.....
.....
.....
11111
00000
EdgeT
Purple darkblue
00000
11111
.....
.....
.....
=======
LEGEND
=======
. = Background
# = Wall
P = Player
Edge = EdgeL or EdgeR or EdgeT or EdgeB
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
EdgeB
EdgeT
EdgeL
EdgeR
Player, Wall
======
RULES
======
right [ wall | no wall ] -> [ wall | edgel ]
left [ wall | no wall ] -> [ wall | edger ]
down [ wall | no wall ] -> [ wall | edget ]
up [ wall | no wall ] -> [ wall | edgeb ]
[ > Player | Wall ] -> [ Player | Wall ]
right [ right Player EdgeT | no Edge ] -> [ EdgeT | ^ Player ]
left [ left Player EdgeT | no Edge ] -> [ EdgeT | v Player ]
right [ right Player EdgeB | no Edge ] -> [ EdgeB | v Player ]
left [ left Player EdgeB | no Edge ] -> [ EdgeB | ^ Player ]
up [ up Player EdgeL | no Edge ] -> [ EdgeL | ^ Player ]
down [ down Player EdgeL | no Edge ] -> [ EdgeL | v Player ]
up [ up Player EdgeR | no Edge ] -> [ EdgeR | v Player ]
down [ down Player EdgeR | no Edge ] -> [ EdgeR | ^ Player ]
up [ up Player EdgeB | no Edge ] -> [ Player | ]
down [ down Player EdgeT | no Edge ] -> [ Player | ]
right [ right Player EdgeL | no Edge ] -> [ Player | ]
left [ left Player EdgeR | no Edge ] -> [ Player | ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
###################################
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#.................................#
#..............####...............#
#.................................#
#P........#...#...................#
#.......#######..##..#............#
###..#####....#..#...#............#
###..............#...#............#
###..............#####............#
####....#####.....................#
#.......#.........................#
#.............#####...............#
#................####.............#
#......##.........................#
#.....###.........................#
###################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment