Skip to content
AlienTina edited this page Oct 15, 2023 · 2 revisions

Creation:

Scene scene = new Scene()
Scene scene = new Scene(string name)
Scene scene = new Scene(List<GameObject> gameObjects, string name)

Usage:

  • Scene.gameObjects(List<GameObject): A list of every GameObject included within a scene.

  • Scene.Name(string): Currently unused. Will be used when switching between scenes.

  • Scene.map(TileMap): Scene's tilemap.

  • Scene.InitializeMap()(function): Updates the scene based on it's tilemap. Used when loading a new Tilemap.

  • Scene.FindGameObject(string name)(GameObject): Used to find a GameObject within a scene of a certain name.

  • Scene.FindGameObjects(string name)(List): Used to find multiple GameObjects within a scene of a certain name.

  • Scene.Update(GameTime)(function): Gets called every frame. Used to cycle through the update methods of every GameObject.

  • Scene.Draw()(function): Handles rendering. Used to cycle through the draw methods of every GameObject.

Clone this wiki locally