forked from increpare/PuzzleScript
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't workingexpansionany expansion mechanismany expansion mechanismmappingsAnything that concerns mappingsAnything that concerns mappingssyntax/languageConcerns the language or its syntaxConcerns the language or its syntax
Description
The following file should compile and produce only two rules but it produces 8 rules:
OBJECTS
Background
darkblue
Player
red
Dot:directions
white
.....
.....
..000
.....
.....
rot:right:>
LEGEND
. = Background
SOUNDS
COLLISIONLAYERS
Background
Player
Dot:directions
RULES
[Player Dot:directions ] -> [ ]
[Player no Dot:directions ] -> [ ]
WINCONDITIONS
LEVELS
........
........
........
The rules produced are:
instructions.
[30] UP [ player dot:directions ] -> [ ]
+ [30] DOWN [ player dot:directions ] -> [ ]
+ [30] LEFT [ player dot:directions ] -> [ ]
+ [30] RIGHT [ player dot:directions ] -> [ ]
[31] UP [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
+ [31] DOWN [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
+ [31] LEFT [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
+ [31] RIGHT [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
LATE RULES
Instead, it should produce:
Successful compilation, generated 1 instruction.
[30] DOWN [ player dot:directions ] -> [ ]
[31] DOWN [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
LATE RULES
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingexpansionany expansion mechanismany expansion mechanismmappingsAnything that concerns mappingsAnything that concerns mappingssyntax/languageConcerns the language or its syntaxConcerns the language or its syntax