Details of Space Intruders architecture. Last updated 8/7/2024

Systems



Scenes

5 Scenes:

  1. GameScene
  2. ManagerScene
  3. MainMenuScene
  4. PlayerWinScene
  5. PlayerLossScene

Managers

  1. SceneManager (ManagerScene)
    1. Handles the functions for adding, removing, and setting active scenes
    2. Generally unloads all scenes (except manager) and loads desired scene
    3. Also has quit game function
  2. GameManager (ManagerScene)
    1. Manages meta details of the game
      1. Currently just handles the pause and unpause of the game
  3. StatsManager (ManagerScene)
    1. Handles the loading of creature stats.
    2. Currently only handles resetting player, alien, weapon, and bullet stats
  4. AlienManager (ManagerScene)
    1. Manages functions for calling a victory event (when all aliens are dead)
    2. Also manages spawning of aliens for a level
    3. Inconsistently with the other managers, holds its own listeners

Events, Parameterized Events, and Listeners

Events