Options
All
  • Public
  • Public/Protected
  • All
Menu

interface shell game InitialisationParameters

Provide the 2 core context (game and shell)

Note that shell and gameLoader will be run independently of each other

No variable in one can affect the other

This allow to ensure verifiabily without sacrifying development practise

You need to implement both shell and gameLoader

Summary

Properties

Properties

gameLoader

gameLoader: GameLoader

The gameLoader need to have 2 methods "loadGameResources" and "createNewGame" plus an optional renderer Object Renderer

Optional shell

shell: Shell

The shell need to have 2 methods "preload" and "ready"

This field is technically optional and by not setting it, a development shell is provided so you can start making the game without implementing the various shell screen