/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here LevelManager = new LevelManager(this); GuiManager = new GuiManager(this); base.Initialize(); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here LevelManager = new LevelManager(this); GuiManager = new GuiManager(this); TotalKills = 0; TotalScore = 0; CurrentLevel = 0; //Using unused so that the first level is at index 1, second is index 2 ect. //Levels = new List<string> {"unused", "Level_1_Tilemap_2", "Airbase", "lavaLevel2", "moon", "crystalland", "AlienBaseSafe", "InsideAlien" }; Levels = new List<string> {"unused", "Airbase", "crystalland", "InsideAlien" }; oldKS = Keyboard.GetState(); base.Initialize(); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here LevelManager = new LevelManager(this); GuiManager = new GuiManager(this); TotalKills = 0; TotalScore = 0; CurrentLevel = 0; Levels = new List<string> { "Airbase", "Airbase", "Airbase", "Airbase", "Airbase" }; oldKS = Keyboard.GetState(); base.Initialize(); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here LevelManager = new LevelManager(this); GuiManager = new GuiManager(this); TotalKills = 0; TotalScore = 0; CurrentLevel = 0; // Levels = new List<string> { "Level_1_Tilemap_2", "Airbase", "Airbase", "Airbase", "Airbase" }; //the first element of this list is unused so that the elements will be numbered the same as their level values //example: level 1 is at index 1, level 3 is at index 3 ect. Levels = new List<string> { "Unused", "Airbase", "lavaLevel2", "Airbase", "Airbase", "Airbase", "Airbase"}; oldKS = Keyboard.GetState(); base.Initialize(); }