new Scene(canvas, initFunc, simulationFunc, drawFunc)
A Scene handles the render loop for the game. Inside of initFunc, simulationFunc, and drawFunc `this` refers to the current scene.
||external:canvas||The canvas to render on.|
||emptyCallback||A callback to be called every time the Scene is started.|
||simulationCallback||A callback that updates the state of the game's simulation.|
||drawCallback||A callback that draws the game.|
The Camera used to offset the Scene's drawing. This Camera's move and draw methods are called automatically for you. The default Camera starts at the origin (0,0).
A flag that enables/disables a frame rate counter in the corner of the screen. This is useful during development.
A key-value store of named timers. Timers in this object will be automatically tick()ed for you when the scene is running..
Reset the simulation by re-running the Splat.Scene#initFunc.
Start running the scene.
Stop running the scene.