Function init

  • init the game instance (create a physic world, update starting time, etc..)

    Parameters

    • width: number

      The width of the canvas viewport

    • height: number

      The height of the canvas viewport

    • Optionaloptions: any

      The optional parameters for the application and default renderer

    Returns void