Skip to content

Instantly share code, notes, and snippets.

@sfiera
Last active December 11, 2019 00:37
Show Gist options
  • Save sfiera/cf87c557b0e4ca938d3834428914c738 to your computer and use it in GitHub Desktop.
Save sfiera/cf87c557b0e4ca938d3834428914c738 to your computer and use it in GitHub Desktop.
title Color Test
author Chris Pickel
========
OBJECTS
========
Green Player G
Green
Blue U
Blue
Purple P
Purple
Orange O
Orange
Wall #
Black
Background .
White
Blocked
Transparent
=======
LEGEND
=======
Key = Green or Blue or Purple or Orange
Solid = Key or Wall
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Solid
Blocked
======
RULES
======
[Wall] -> [Blocked Wall]
startLoop
[> Key | Blue] -> [> Key | > Blue]
[< Key | Purple] -> [< Key | < Purple]
[^ Key | Orange] -> [^ Key | ^ Orange]
[> Solid | Blocked Solid] -> [Blocked > Solid | Blocked Solid]
[Blocked > Key | Blue] -> [Blocked > Key | Blocked > Blue]
[Blocked < Key | Purple] -> [Blocked < Key | Blocked < Purple]
[Blocked ^ Key | Orange] -> [Blocked ^ Key | Blocked ^ Orange]
endLoop
[Blocked Solid] -> [stationary Solid]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
#########
#...GP..#
#.....OP#
#...OUG.#
#.#.G.O.#
#.....G.#
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment