Property | Type | Description | |
---|---|---|---|
Game | Microsoft.Xna.Framework.Game | ||
GameTime | |||
LIBRARY_MAJOR_VERSION | uint | ||
LIBRARY_MINOR_VERSION | uint | ||
LIBRARY_NAME | string | ||
autoHandlePause | bool | ||
backColor | Microsoft.Xna.Framework.Color | ||
debug | bool | ||
elapsed | float | ||
fade | FlxFade | ||
flash | FlxFlash | ||
followLead | |||
followLerp | float | ||
followMax | |||
followMin | |||
followTarget | FlxObject | ||
gamepads | |||
getTimer | uint | ||
height | int | ||
keys | FlxKeyboard | ||
level | int | ||
levels | List |
||
maxElapsed | float | ||
mobile | bool | ||
mouse | FlxMouse | ||
music | FlxSound | ||
quake | |||
save | int | ||
saves | List |
||
score | int | ||
scores | List |
||
scroll | |||
showBounds | bool | ||
sounds | List |
||
timeScale | float | ||
width | int |
Property | Type | Description | |
---|---|---|---|
_flxGame | |||
_mute | bool | ||
_pause | bool | ||
_scrollTarget | |||
_volume | float |
Method | Description | |
---|---|---|
LoadContent ( GraphicsDevice gd ) : void | ||
follow ( FlxObject Target, float Lerp ) : void | ||
followAdjust ( float LeadX, float LeadY ) : void | ||
followBounds ( int MinX, int MinY, int MaxX, int MaxY ) : void |
Specify the boundaries of the level or where the camera is allowed to move. @param MinX The smallest X value of your level (usually 0). @param MinY The smallest Y value of your level (usually 0). @param MaxX The largest X value of your level (usually the level width). @param MaxY The largest Y value of your level (usually the level height). @param UpdateWorldBounds Whether the quad tree's dimensions should be updated to match.
|
|
followBounds ( int MinX, int MinY, int MaxX, int MaxY, bool UpdateWorldBounds ) : void | ||
getMuteValue ( ) : int |
Get a number that represents the mute state that we can multiply into a sound transform. @return An unsigned integer - 0 if muted, 1 if not muted.
|
|
log ( string Data ) : void |
Log data to the developer console. @param Data Anything you want to log to the console.
|
|
play ( string EmbeddedSound ) : FlxSound |
Creates a new sound object from an embedded
|
|
play ( string EmbeddedSound, float Volume ) : FlxSound | ||
play ( string EmbeddedSound, float Volume, bool Looped ) : FlxSound | ||
playMusic ( string Music ) : void |
Set up and play a looping background soundtrack. @param Music The sound file you want to loop in the background. @param Volume How loud the sound should be, from 0 to 1.
|
|
playMusic ( string Music, float Volume ) : void | ||
resetInput ( ) : void |
Reset the input helper objects (useful when changing screens or states)
|
Method | Description | |
---|---|---|
changeSounds ( ) : void |
An internal function that adjust the volume levels and the music channel after a change.
|
|
pauseSounds ( ) : void |
Internal helper, pauses all game sounds.
|
|
playSounds ( ) : void |
Internal helper, pauses all game sounds.
|
Method | Description | |
---|---|---|
destroySounds ( bool ForceDestroy ) : void |
Called by FlxGame on state changes to stop and destroy sounds. @param ForceDestroy Kill sounds even if they're flagged
|
|
doFollow ( ) : void |
Internal function that updates the camera and parallax scrolling.
|
|
setGameData ( |
Called by
|
|
unfollow ( ) : void |
Stops and resets the camera.
|
|
updateSounds ( ) : void |
Called by the game loop to make sure the sounds get updated each frame.
|
public static LoadContent ( GraphicsDevice gd ) : void | ||
gd | GraphicsDevice | |
return | void |
public static follow ( FlxObject Target, float Lerp ) : void | ||
Target | FlxObject | |
Lerp | float | |
return | void |
public static followAdjust ( float LeadX, float LeadY ) : void | ||
LeadX | float | |
LeadY | float | |
return | void |
public static followBounds ( int MinX, int MinY, int MaxX, int MaxY ) : void | ||
MinX | int | |
MinY | int | |
MaxX | int | |
MaxY | int | |
return | void |
public static followBounds ( int MinX, int MinY, int MaxX, int MaxY, bool UpdateWorldBounds ) : void | ||
MinX | int | |
MinY | int | |
MaxX | int | |
MaxY | int | |
UpdateWorldBounds | bool | |
return | void |
public static play ( string EmbeddedSound ) : FlxSound | ||
EmbeddedSound | string | |
return | FlxSound |
public static play ( string EmbeddedSound, float Volume ) : FlxSound | ||
EmbeddedSound | string | |
Volume | float | |
return | FlxSound |
public static play ( string EmbeddedSound, float Volume, bool Looped ) : FlxSound | ||
EmbeddedSound | string | |
Volume | float | |
Looped | bool | |
return | FlxSound |
public static playMusic ( string Music ) : void | ||
Music | string | |
return | void |
public static playMusic ( string Music, float Volume ) : void | ||
Music | string | |
Volume | float | |
return | void |
public static Game,Microsoft.Xna.Framework Game | ||
return | Microsoft.Xna.Framework.Game |
public static GameTime,Microsoft.Xna.Framework GameTime | ||
return |
public static uint LIBRARY_MAJOR_VERSION | ||
return | uint |
public static uint LIBRARY_MINOR_VERSION | ||
return | uint |
protected static Vector2,Microsoft.Xna.Framework _scrollTarget | ||
return |
public static Color,Microsoft.Xna.Framework backColor | ||
return | Microsoft.Xna.Framework.Color |
public static Vector2,Microsoft.Xna.Framework followLead | ||
return |
public static Point,Microsoft.Xna.Framework followMax | ||
return |
public static Point,Microsoft.Xna.Framework followMin | ||
return |
public static FlxGamepad,XnaFlixel.data gamepads | ||
return |
public static FlxQuake,XnaFlixel.data quake | ||
return |
public static Vector2,Microsoft.Xna.Framework scroll | ||
return |