Property | Type | Description | |
---|---|---|---|
MCam | |||
MDeaths | int | ||
MNumCollectable | int | ||
MNumCollected | int | ||
MTimer | double |
Method | Description | |
---|---|---|
Dispose ( ) : void | ||
Draw ( |
Draws the level background on to the screen
|
|
Level ( String filepath, IControlScheme controls, |
Initializes a new instance of the Level class.
|
|
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void |
Loads the level from the content manager
|
|
Load ( Microsoft.Xna.Framework.Content.ContentManager content, string assetName ) : void |
Loads the level from the content manager
|
|
MainMenuLevel ( string filepath, IControlScheme controls, |
||
Reload ( ) : void |
Reloads the content in this level
|
|
Reset ( ) : void |
Preps the level to reload content
|
|
ResetAll ( ) : void | ||
ResetScores ( ) : void |
Resets the Scores for this level to 0.
|
|
Respawn ( ) : void |
|
|
Update ( |
Updates the level's progress
|
|
UpdateParticles ( object sender, |
||
UpdateStars ( ) : void |
Method | Description | |
---|---|---|
GetAnimation ( string name ) : |
Returns the proper animation for the given tile
|
|
HandleCollisions ( |
Checks to see if given object is colliding with any other object and handles the collision
|
|
PrepareCollisionMatrix ( ) : void |
Prepares the collision matrix in the game
|
|
RemoveFromMatrix ( |
Removes the object from the matrix(for collectables
|
|
UpdateCollisionMatrix ( |
Updates the collision matrix with the new position
|
public Draw ( |
||
spriteBatch | Sprite batch that we use to draw textures | |
gameTime | ||
scale | Matrix | |
return | void |
public Level ( String filepath, IControlScheme controls, |
||
filepath | String | |
controls | IControlScheme | The controls scheme |
viewport | The viewport for the cameras | |
return | System |
public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void | ||
content | Microsoft.Xna.Framework.Content.ContentManager | Content Manager to load from |
return | void |
public Load ( Microsoft.Xna.Framework.Content.ContentManager content, string assetName ) : void | ||
content | Microsoft.Xna.Framework.Content.ContentManager | Content Manager to load from |
assetName | string | |
return | void |
public static MainMenuLevel ( string filepath, IControlScheme controls, |
||
filepath | string | |
controls | IControlScheme | |
viewport | ||
region | ||
return |
public Update ( |
||
gameTime | The game time. | |
gameState | GameStates | State of the game. |
return | void |
public UpdateParticles ( object sender, |
||
sender | object | |
e | ||
return | void |