BrowserGameController - Grisgram/gml-raptor GitHub Wiki

In addition to the global Broadcasting sender of its parent, the GameController, this controller offers all the functionality you need to launch a successful game in the browser window:

  • It detects, whether the game is running in HTML5 mode and turns completely silent, if not, so no fear on performance. You can use it in a steam game without any negative consequences.
  • If in HTML5 mode, it adapts the canvas size on RoomStart and also tracks the browser window size and will adapt the canvas instantly, if it changes.

In general, you should pick this Controller as your game controller (or derive from it to implement your own global actions needed in your game).