gameforge - v0.0.19
    Preparing search index...

    Class Game

    Hierarchy

    • Application
      • Game
    Index

    Constructors

    • Parameters

      • Optionaloptions: Partial<IApplicationOptions>

      Returns Game

    Properties

    cancelResize: () => void
    queueResize: () => void
    renderer: IRenderer<ICanvas>

    WebGL renderer if available, otherwise CanvasRenderer.

    resizeTo: Window | HTMLElement
    stage: Container

    The root display container that's rendered.

    ticker: Ticker
    _plugins: IApplicationPlugin[]

    Collection of installed plugins.

    Accessors

    • get screen(): Rectangle

      Reference to the renderer's screen rectangle. Its safe to use as filterArea or hitArea for the whole screen.

      Returns Rectangle

    • get view(): VIEW

      Reference to the renderer's canvas element.

      Returns VIEW

    Methods

    • Destroy and don't use after this.

      Parameters

      • OptionalremoveView: boolean

        Automatically remove canvas from DOM.

      • OptionalstageOptions: boolean | IDestroyOptions

        Options parameter. A boolean will act as if all options have been set to that value

        • boolean
        • IDestroyOptions
          • children

            if set to true, all the children will have their destroy method called as well. 'stageOptions' will be passed on to those calls.

          • texture

            Only used for child Sprites if stageOptions.children is set to true. Should it destroy the texture of the child sprite

          • baseTexture

            Only used for child Sprites if stageOptions.children is set to true. Should it destroy the base texture of the child sprite

      Returns void

    • Render the current stage.

      Returns void

    • Returns void

    • Returns void

    • Returns void