Class BaseScene
Represents a scene in the game.
public abstract class BaseScene
- Inheritance
-
BaseScene
- Inherited Members
Properties
Game
Game that this scene is running on.
protected Game Game { get; }
Property Value
SceneGameHost
Scene Host. This can be used to switch to a different Scene when needed.
protected SceneGameHost SceneGameHost { get; }
Property Value
Methods
Draw(double, double)
Called when the scene draws.
public virtual void Draw(double frameDelta, double frameRate)
Parameters
Load()
Called to load the scene.
public virtual void Load()
Resize(Vector2)
Called when the window resizes
public virtual void Resize(Vector2 size)
Parameters
size
Vector2New window size
Unload()
Called to unload the scene.
public virtual void Unload()
Update(double)
Called when the scene updates.
public virtual void Update(double frameDelta)
Parameters
frameDelta
doubleCurrent frame delta