Skip to content

Directional tags in a rule make it directional.  #43

@ClementSparrow

Description

@ClementSparrow

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

No one assigned

    Labels

    bugSomething isn't workingexpansionany expansion mechanismmappingsAnything that concerns mappingssyntax/languageConcerns the language or its syntax

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions