Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 336 Bytes

File metadata and controls

10 lines (8 loc) · 336 Bytes

UI

This component handles DOM-based game UI.

  • method to position a div at a specified location over the canvas
  • keep track of DOM menu items by ID
  • show/hide DOM menu items on events, with additional arguments in the event object (like State)
  • may need a class for menu items:
    • easier to handle DOM events on the menu items