mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
28 lines
714 B
TypeScript
28 lines
714 B
TypeScript
/**
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
* @copyright 2016 Photon Storm Ltd.
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
*/
|
|
export default class MainLoop {
|
|
state: any;
|
|
game: any;
|
|
timestep: any;
|
|
physicsStep: any;
|
|
frameDelta: any;
|
|
lastFrameTimeMs: any;
|
|
fps: any;
|
|
lastFpsUpdate: any;
|
|
framesThisSecond: any;
|
|
numUpdateSteps: any;
|
|
minFrameDelay: any;
|
|
running: any;
|
|
started: any;
|
|
panic: any;
|
|
constructor(state: any, framerate: any);
|
|
setMaxFPS(fps: any): void;
|
|
getMaxFPS(): number;
|
|
resetFrameDelta(): any;
|
|
start(): this;
|
|
step(timestamp: any): void;
|
|
stop(): this;
|
|
}
|