/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { UI.LoadContent(Content, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight); UIClass.LoadContent(Content); UpgradeSystem.LoadContent(Content, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight); WeaponList.LoadContent(Content); ChopperList.LoadContent(Content); EffectsList.LoadContent(Content); EnemyMaker.LoadContent(Content); // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); Level level = new Level(500, 500); Player player = new Player(ChopperList.GetChopper(ChopperType.Training), new Vector2(500, 2000)); //Player player = new Player(ChopperList.GetChopper(0), new Vector2(0, 0)); hud = new Hud(Content.Load <SpriteFont>("hudFont")); camera = new Camera(); //camera.Position = player.PlayerSpriteCenter; camera.Position = player.PlayerCenter; gameManager = new GameManager(level, player); List <Sprite> listOfEnemies = new List <Sprite>(); listOfEnemies.Add(EnemyMaker.GetTurret(TurretType.MGun, new Vector2(0, 0), 0, 0)); listOfEnemies.Add(EnemyMaker.GetTurret(TurretType.MGun, new Vector2(0, 700), 0, 0)); listOfEnemies.Add(EnemyMaker.GetTurret(TurretType.MGun, new Vector2(700, 700), 0, 0)); listOfEnemies.Add(EnemyMaker.GetTurret(TurretType.MGun, new Vector2(700, 0), 0, 0)); listOfEnemies.Add(EnemyMaker.GetTurret(TurretType.Rocket, new Vector2(350, 350), 0, 0)); listOfEnemies.Add(EnemyMaker.GetTurret(TurretType.RocketHoming, new Vector2(800, 800), 0, 0)); listOfEnemies.Add(EnemyMaker.GetTurret(TurretType.ShotGun, new Vector2(500, 500), 3, 1)); listOfEnemies.Add(EnemyMaker.GetTurret(TurretType.ShotGun, new Vector2(250, 450), 5, 0.5f)); level.AddEntity(listOfEnemies, true, true, true); listOfEnemies.Clear(); listOfEnemies.Add(new Building(Content.Load <Texture2D>("building"), new Vector2(1000, 1000))); List <Helipad> listOfHelipads = new List <Helipad>(); listOfHelipads.Add(new Helipad(Content.Load <Texture2D>("Allies\\helipad"), new Vector2(500, 2000))); level.AddLandingPad(listOfHelipads); level.AddEntity(listOfEnemies, true, true, false); missionScreen = new MissionScreen(1, "GameTest", "Yarrr mission is to blow up\nevery turret. Then return\nto the base\n\nWASD - Move \nLeft\\Right arrow - rotate\nSpace - fire \nX and L - land\\lift \nU - upgrade (on helipad)\nP- developer stats\n+ and - - zoom ", graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight, Color.SaddleBrown); GameData.menuState = MenuState.MissionMenu; // TODO: use this.Content to load your game content here }