Table of Contents

Class BaseScene

Namespace
Axolotl2D.Scenes
Assembly
Axolotl2D.dll

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

Game

SceneGameHost

Scene Host. This can be used to switch to a different Scene when needed.

protected SceneGameHost SceneGameHost { get; }

Property Value

SceneGameHost

Methods

Draw(double, double)

Called when the scene draws.

public virtual void Draw(double frameDelta, double frameRate)

Parameters

frameDelta double

Current frame delta

frameRate double

Current frame rate

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 Vector2

New 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 double

Current frame delta