Layer syntax example
For enabling changes of the map, we have a few things we want to support:
- Picking up an item
- detecting being in a region
For in a region we want to be able to toggle something, set something, or have something be true for a period after leaving, probably starting on entering.
Probably want to place them relative to the center of a location or absolute.
Things that should be changeable:
- which layers are enabled
- What ship you are
- possibly edit gravity?
- possibly create or delete a pickup/region?
some thoughts on options:
- Layers need to start in varying on or off states - perhaps we should put a predicate with the layer and have the pickups be variables?
- since the delta could be complicated, the "Easiest" might just be "function to run on pickup" but then saving state can be a problem and people could do the wrong thing in the function
- Some changes should be based on a combination of triggers.
Edited by davean