프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 overlap ( |
||
ObjectOrGroup1 | ||
ObjectOrGroup2 | ||
NotifyCallback | Func |
|
ProcessCallback | Func |
|
리턴 | System.Boolean |
public static play ( |
||
EmbeddedSound | ||
Volume | float | |
Looped | bool | |
리턴 |
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 StorageDevice,Microsoft.Xna.Framework.Storage storage | ||
리턴 | Microsoft.Xna.Framework.Storage.StorageDevice |
public static Viewport,Microsoft.Xna.Framework.Graphics viewport | ||
리턴 |