Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 381 Bytes

File metadata and controls

12 lines (9 loc) · 381 Bytes

BaseTile (interface)

Logic component for a tile.

Extend yourself to implement one per type of tile.

  • pure component, only one instance per tile ID
  • update method to calculate new state from old state and delta time
  • can listen to custom events, reacting with an update
    • event must keep note of tile ID
  • can have a (or be?) sprite, if needs animation