Zannick / logic-graph

Tools for video game logic representation and analysis, particularly routing and beatability checks for speedruns and randomizers.
MIT License
3 stars 0 forks source link

Non-item-based support for map access #134

Closed Zannick closed 7 months ago

Zannick commented 8 months ago

It'd be nice to track map tile viewing separately, without making it item-based.

Zannick commented 8 months ago

I guess one hacky way to do it is to use spot on_entry rules that set context variables (or even model it like this).

Zannick commented 7 months ago

There's probably a reasonable way to use spot coords for this, where we determine the spots that are in a map tile via a bounding box. Say a map section that looks like:

map:
    tile: [x1, y1, x2, y2]

and then this automatically:

  1. defines map_tile as a context variable
  2. creates mappings to make it easy to look up which tile(s) a spot is in.
  3. sets map_tile to true in the enter block of each such spot