Property | Type | Description | |
---|---|---|---|
paused | System.Boolean |
Method | Description | |
---|---|---|
Engine ( int width, int height, int frameRate = 60, System.Boolean fixedFrameRate = false ) : System |
Constructor. Defines startup information about your game.
|
|
init ( ) : void |
override this method - called by Engine before main loop starts
|
|
render ( ) : void |
Renders the game, rendering the World and Entities.
|
|
setStageProperties ( ) : void |
Sets the game's stage properties. Override this to set them differently.
|
|
update ( ) : void |
updates the game, updating the World and Entities
|
Method | Description | |
---|---|---|
checkWorld ( ) : void |
Switch Worlds if they've changed.
|
|
onEnterFrame ( ) : void |
Framerate independent game loop.
|
|
onStage ( ) : void |
Event handler for stage entry.
|
|
onTimer ( ) : void |
Fixed framerate game loop.
|
public Engine ( int width, int height, int frameRate = 60, System.Boolean fixedFrameRate = false ) : System | ||
width | int | The width of your game. |
height | int | The height of your game. |
frameRate | int | The game framerate, in frames per second. |
fixedFrameRate | System.Boolean | If a fixed-framerate should be used. |
return | System |