Property | Type | Description | |
---|---|---|---|
bgColor | Color | ||
camera | |||
cameras | List |
||
console | |||
content | Microsoft.Xna.Framework.Content.ContentManager | ||
defaultFont | |||
defaultWholeScreenViewport | |||
elapsed | float | ||
globalSeed | float | ||
graphics | GraphicsDeviceManager | ||
graphicsDevice | GraphicsDevice | ||
height | float | ||
hud | |||
keys | |||
mouse | FlxMouse | ||
mute | bool | ||
pad1 | |||
pad2 | |||
pad3 | |||
pad4 | |||
rotation | float | ||
safeZone | |||
sounds | |||
storage | Microsoft.Xna.Framework.Storage.StorageDevice | ||
viewport | |||
viewports | List |
||
volume | float | ||
width | float | ||
zoom | float |
Method | Description | |
---|---|---|
addCamera ( |
||
collide ( |
Returns true if the two FlxObjects collide. Optional callback function of return type bool with two FlxObject parameters will be called if true.
|
|
log ( Object data ) : bool |
Log something to the debugger console in Visual Studio
|
|
overlap ( |
Returns true if the two FlxObjects overlap. Optional Callback function of return type bool with two FlxObject parameters will be called if true.
|
|
play ( |
Play a sound, not with FlxSound but with SoundEffect from the XNA framework because the sound is disposed of properly by the xbox itself. CURRENTLY NOT WORKING The sound starts but cuts off in about half of a second.
|
|
switchState ( |
Call this to switch to a new state @use FlxG.switchState(new NewState());
|
Method | Description | |
---|---|---|
gametime ( |
||
init ( ) : void |
Initiate all the things needed by the engine
|
|
loadSound ( |
||
random ( ) : float |
Internal random float from 0 to 1
|
|
shake ( float Intensity = 0.025f, float Duration = 0.5f, System.Action OnComplete = null, bool Force = true, uint Direction ) : void |
Shake the screen
|
|
snap ( float XorY, float Grid ) : float | ||
update ( |
Internal function for updating Camera, State, Console, and Elapsed Time
|
|
updateCameras ( ) : void | ||
updateInputs ( ) : void |
Internal function for keeping input states current
|
public static addCamera ( |
||
NewCamera | ||
return |
public static collide ( |
||
ObjectOrGroup1 | ||
ObjectOrGroup2 | ||
NotifyCallback | Func |
|
return | System.Boolean |
public static overlap ( |
||
ObjectOrGroup1 | ||
ObjectOrGroup2 | ||
NotifyCallback | Func |
|
ProcessCallback | Func |
|
return | System.Boolean |
public static play ( |
||
EmbeddedSound | ||
Volume | float | |
Looped | bool | |
return |
public static switchState ( |
||
State | ||
return | void |
public static ContentManager,Microsoft.Xna.Framework.Content content | ||
return | Microsoft.Xna.Framework.Content.ContentManager |
public static SpriteFont,Microsoft.Xna.Framework.Graphics defaultFont | ||
return |
public static Viewport,Microsoft.Xna.Framework.Graphics defaultWholeScreenViewport | ||
return |
public static GraphicsDeviceManager graphics | ||
return | GraphicsDeviceManager |
public static GraphicsDevice graphicsDevice | ||
return | GraphicsDevice |
public static StorageDevice,Microsoft.Xna.Framework.Storage storage | ||
return | Microsoft.Xna.Framework.Storage.StorageDevice |
public static Viewport,Microsoft.Xna.Framework.Graphics viewport | ||
return |