Свойство | Тип | Описание | |
---|---|---|---|
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 |
Метод | Описание | |
---|---|---|
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());
|
Метод | Описание | |
---|---|---|
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 | ||
Результат |
public static collide ( |
||
ObjectOrGroup1 | ||
ObjectOrGroup2 | ||
NotifyCallback | Func |
|
Результат | System.Boolean |
public static log ( Object data ) : bool | ||
data | Object | |
Результат | bool |
public static overlap ( |
||
ObjectOrGroup1 | ||
ObjectOrGroup2 | ||
NotifyCallback | Func |
|
ProcessCallback | Func |
|
Результат | System.Boolean |
public static play ( |
||
EmbeddedSound | ||
Volume | float | |
Looped | bool | |
Результат |
public static switchState ( |
||
State | ||
Результат | void |
public static FlxCamera,fliXNA_xbox camera | ||
Результат |
public static FlxConsole,fliXNA_xbox console | ||
Результат |
public static ContentManager,Microsoft.Xna.Framework.Content content | ||
Результат | Microsoft.Xna.Framework.Content.ContentManager |
public static SpriteFont,Microsoft.Xna.Framework.Graphics defaultFont | ||
Результат |
public static Viewport,Microsoft.Xna.Framework.Graphics defaultWholeScreenViewport | ||
Результат |
public static GraphicsDeviceManager graphics | ||
Результат | GraphicsDeviceManager |
public static GraphicsDevice graphicsDevice | ||
Результат | GraphicsDevice |
public static FlxKeyboard,fliXNA_xbox keys | ||
Результат |
public static FlxRect,fliXNA_xbox safeZone | ||
Результат |
public static StorageDevice,Microsoft.Xna.Framework.Storage storage | ||
Результат | Microsoft.Xna.Framework.Storage.StorageDevice |
public static Viewport,Microsoft.Xna.Framework.Graphics viewport | ||
Результат |