Class Application

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

See

game

References

accumulator

Re-exports accumulator

accumulatorMax

Re-exports accumulatorMax

accumulatorUpdateDelta

Re-exports accumulatorUpdateDelta

draw

Re-exports draw

frameCounter

Re-exports frameCounter

frameRate

Re-exports frameRate

getParentElement

Re-exports getParentElement

init

Re-exports init

isAlwaysDirty

Re-exports isAlwaysDirty

isDirty

Re-exports isDirty

isInitialized

Re-exports isInitialized

lastUpdate

Re-exports lastUpdate

lastUpdateStart

Re-exports lastUpdateStart

mergeGroup

Re-exports mergeGroup

onLevelLoaded

Re-exports onLevelLoaded

parentElement

Re-exports parentElement

pauseOnBlur

Re-exports pauseOnBlur

renderer

Re-exports renderer

repaint

Re-exports repaint

reset

Re-exports reset

resumeOnFocus

Re-exports resumeOnFocus

settings

Re-exports settings

sortOn

Re-exports sortOn

stepSize

Re-exports stepSize

stopOnBlur

Re-exports stopOnBlur

update

Re-exports update

updateAverageDelta

Re-exports updateAverageDelta

updateDelta

Re-exports updateDelta

updateFrameRate

Re-exports updateFrameRate

viewport

Re-exports viewport

world

Re-exports world

Constructors

constructor

  • new Application(width, height, options?): Application
  • 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

    Throws

    Will throw an exception if it fails to instantiate a renderer

Settings

Member Visibility

On This Page

AltStyle によって変換されたページ (->オリジナル) /