Class Application

An Application represents a single melonJS game, and is responsible for updating (each frame) all the related object status and draw them.

game

References

Re-exports accumulator
Re-exports accumulatorMax
Re-exports accumulatorUpdateDelta
Re-exports draw
Re-exports frameCounter
Re-exports frameRate
Re-exports getParentElement
Re-exports init
Re-exports isAlwaysDirty
Re-exports isDirty
Re-exports isInitialized
Re-exports lastUpdate
Re-exports lastUpdateStart
Re-exports mergeGroup
Re-exports onLevelLoaded
Re-exports parentElement
Re-exports pauseOnBlur
Re-exports renderer
Re-exports repaint
Re-exports reset
Re-exports resumeOnFocus
Re-exports settings
Re-exports sortOn
Re-exports stepSize
Re-exports stopOnBlur
Re-exports update
Re-exports updateAverageDelta
Re-exports updateDelta
Re-exports updateFrameRate
Re-exports viewport
Re-exports world

Constructors

  • 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 Application

    Will throw an exception if it fails to instantiate a renderer