protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.Black); spriteBatch.Begin(); // CAll ScreenManager ScreenManager.Draw(spriteBatch); // Draw FPS if steting enable if (Settings.Default.ShowFPS) { deltaTime = (float)gameTime.ElapsedGameTime.TotalSeconds; FramerateCounter.Update(deltaTime); stringBuilder.Clear(); stringBuilder.Append("FPS : "); stringBuilder.Append(FramerateCounter.AverageFramesPerSecond.ToString("F")); spriteBatch.DrawString(Jacklane, stringBuilder, new Vector2(1020, 10), Color.Yellow); } // CALL ScreenTransition effect ScreenTransitions.Draw(spriteBatch); // Draw cursor in game spriteBatch.Draw(Cursor, InputManager.GetMousePosition(), Color.White); spriteBatch.End(); base.Draw(gameTime); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Jacklane = Content.Load <SpriteFont>("Fonts/Jacklane"); Cursor = Content.Load <Texture2D>("Sprites/cursor"); Circle = Content.Load <Texture2D>("TransitionEffect/Circle"); ScreenTransitions.SetTexture(Circle); ScreenManager.LoadContent(); }
private void Start() { foreach (var animator in animators) { animatorsByName[animator.name] = animator.animator; } instance = this; }
public override void Update(GameTime gameTime) { time += (float)gameTime.ElapsedGameTime.Ticks / TimeSpan.TicksPerSecond; if (time > 3f && !CallFaded) { CallFaded = true; ScreenTransitions.FadeIN(); } else if (time > 6f) { ScreenManager.LoadScreen(new MainMenuScreen()); } }
protected override void Update(GameTime gameTime) { MediaPlayer.Volume = Settings.Default.BGMVolume; // CALL InputManager InputManager.Update(gameTime); // CALL ScreenManager ScreenManager.Update(gameTime); // CALL ScreenTransition effect ScreenTransitions.Update(gameTime); // ToggleConsole when press F12 if (InputManager.OnKeyDown(Keys.F12)) { console.ToggleOpenClose(); } base.Update(gameTime); }
public Main() { self = this; graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; // Set Width and Height og game screen graphics.PreferredBackBufferWidth = Settings.Default.ScreenWidth; graphics.PreferredBackBufferHeight = Settings.Default.ScreenHeight; // Set windows start posion to center screen Window.Position = new Point((GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width / 2) - (graphics.PreferredBackBufferWidth / 2), (GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height / 2) - (graphics.PreferredBackBufferHeight / 2)); // For detect FPS in FramerateCounter.cs graphics.SynchronizeWithVerticalRetrace = false; IsFixedTimeStep = false; // Restore fullscreen setting if (Settings.Default.FullScreen) { graphics.ToggleFullScreen(); } graphics.ApplyChanges(); // Initial ScreenTransition ScreenTransitions.FadeOUT(); // Initial QuakeConsole console = new ConsoleComponent(this); Components.Add(console); // Add interpreter for QuakeConsole pythonInterpreter = new PythonInterpreter(); manualInterpreter = new ManualInterpreter(); console.Interpreter = manualInterpreter; // Add variable for PythonInterpreter pythonInterpreter.AddVariable("console", console); pythonInterpreter.AddVariable("manual", manualInterpreter); // Add command for ManualInterpreter manualInterpreter.RegisterCommand("fullscreen", args => { if (args.Length == 0) { return; } else if (graphics.IsFullScreen && args[0].Equals("off")) { graphics.ToggleFullScreen(); } else if (!graphics.IsFullScreen && args[0].Equals("on")) { graphics.ToggleFullScreen(); } }); manualInterpreter.RegisterCommand("fps", args => { if (args.Length == 0) { return; } else if (args[0].Equals("on")) { Settings.Default.ShowFPS = true; Settings.Default.Save(); } else if (args[0].Equals("off")) { Settings.Default.ShowFPS = false; Settings.Default.Save(); } }); manualInterpreter.RegisterCommand("Level", args => { if (args.Length < 2) { return; } else if (args[0].Equals("=")) { Settings.Default.LevelSelected = int.Parse(args[1]); Settings.Default.Save(); } }); manualInterpreter.RegisterCommand("console.Interpreter", args => { if (args.Length < 2) { return; } else if (args[0].Equals("=") & args[1].Equals("python")) { console.Interpreter = pythonInterpreter; } }); manualInterpreter.RegisterCommand("exit", args => { Exit(); }); manualInterpreter.RegisterCommand("ResetLevel", args => { ScreenManager.LoadScreen(new GamePlayScreen()); }); BGM = Content.Load <Song>("Audios/POL-mad-run-short"); MediaPlayer.IsRepeating = true; MediaPlayer.Volume = Settings.Default.BGMVolume; MediaPlayer.Play(BGM); AudioManager.AddAudioEffect("click", Content.Load <SoundEffect>("Audios/NFF-select").CreateInstance()); AudioManager.AddAudioEffect("shoot", Content.Load <SoundEffect>("Audios/NFF-rasp").CreateInstance()); AudioManager.AddAudioEffect("die", Content.Load <SoundEffect>("Audios/NFF-lose").CreateInstance()); AudioManager.AddAudioEffect("switch", Content.Load <SoundEffect>("Audios/NFF-click-switch").CreateInstance()); }
public override void Update(GameTime gameTime) { var mousePosition = InputManager.GetMousePosition(); if (!Fade) { // OnMouseHover SeletLevel Button if ((mousePosition.X > 776 && mousePosition.Y > 344) && (mousePosition.X < 973 && mousePosition.Y < 454)) { SelectID = 1; if (InputManager.OnMouseDown(new Rectangle(776, 344, 197, 100))) { AudioManager.PlayAudio("click"); PanelID = 1; } } /* CreateMap */ else if ((mousePosition.X > 998 && mousePosition.Y > 426) && (mousePosition.X < 1217 && mousePosition.Y < 559)) { SelectID = 2; if (InputManager.OnMouseDown(new Rectangle(998, 426, 219, 133))) { AudioManager.PlayAudio("click"); PanelID = 2; } } /* Option */ else if ((mousePosition.X > 849 && mousePosition.Y > 446) && (mousePosition.X < 974 && mousePosition.Y < 575)) { SelectID = 3; if (InputManager.OnMouseDown(new Rectangle(849, 446, 125, 129))) { AudioManager.PlayAudio("click"); PanelID = 3; } } /* Exit */ else if ((mousePosition.X > 998 && mousePosition.Y > 559) && (mousePosition.X < 1181 && mousePosition.Y < 715)) { SelectID = 4; if (InputManager.OnMouseDown(new Rectangle(998, 559, 183, 156))) { AudioManager.PlayAudio("click"); Main.self.Exit(); } } /* About */ else if ((mousePosition.X > 805 && mousePosition.Y > 604) && (mousePosition.X < 965 && mousePosition.Y < 690)) { SelectID = 5; if (InputManager.OnMouseDown(new Rectangle(805, 604, 160, 86))) { AudioManager.PlayAudio("click"); PanelID = 4; } } else { SelectID = 0; } // Panal OnMouseDown if (PanelID != 0) { if (InputManager.OnMouseDown(new Rectangle(0, 0, 100, 100))) { AudioManager.PlayAudio("click"); PanelID = 0; } } // Panel Select Level if (InputManager.OnMouseDown(new Rectangle(100, 300, 101, 84)) && !LevelStatus[0].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 1; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(200, 300, 101, 84)) && !LevelStatus[1].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 2; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(300, 300, 101, 84)) && !LevelStatus[2].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 3; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(400, 300, 101, 84)) && !LevelStatus[3].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 4; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(500, 300, 101, 84)) && !LevelStatus[4].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 5; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(100, 425, 101, 84)) && !LevelStatus[5].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 6; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(200, 425, 101, 84)) && !LevelStatus[6].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 7; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(300, 425, 101, 84)) && !LevelStatus[7].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 8; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(400, 425, 101, 84)) && !LevelStatus[8].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 9; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } if (InputManager.OnMouseDown(new Rectangle(500, 425, 101, 84)) && !LevelStatus[9].Equals("-1")) { AudioManager.PlayAudio("click"); Settings.Default.LevelSelected = 10; Settings.Default.Save(); Fade = true; ScreenTransitions.FadeIN(); } } else { time += (float)gameTime.ElapsedGameTime.Ticks / TimeSpan.TicksPerSecond; if (time > 3f) { ScreenManager.LoadScreen(new GamePlayScreen()); } } }
private void Initial() { ScreenTransitions.FadeOUT(); LevelStatus = Settings.Default.LevelStatus.Split('/'); }
public void Initial() { ScreenTransitions.FadeOUT(); LevelNo = Settings.Default.LevelSelected; // Create bullet BulletObj = ObjectCreate.CreateBullet(new Vector2(250, 500), bulletTexture); switch (LevelNo) { case 1: LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(832, 570), enemyHumanTexture)); break; case 2: LightObj.Add(ObjectCreate.CreateWall((new Vector2(794, 249)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(771, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(989, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(989, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(832, 499) + (new Vector2(55, 55)), enemyHumanTexture)); NightObj.Add(ObjectCreate.CreateWall(new Vector2(795, 444) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(772, 444) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(989, 444) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); var door21 = ObjectCreate.CreateWallStand(new Vector2(771, 444) + DoorStand.Bounds.Center.ToVector2(), DoorStand, "Door"); LightObj.Add(door21); var door22 = ObjectCreate.CreateWall(new Vector2(795, 444) + Door.Bounds.Center.ToVector2(), Door, "Door"); LightObj.Add(door22); var doorList21 = new List <IGameObject>(); doorList21.Add(door21); doorList21.Add(door22); NightObj.Add(ObjectCreate.CreateTrigger(new Vector2(863 + 29, 364 + 41), Trigger, doorList21)); break; case 3: LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(770, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(989, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(771, 443) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(794, 249)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(795, 444)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(990, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1207, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateWall(new Vector2(1013, 444) + wallCanNotDestroy.Bounds.Center.ToVector2(), wallCanNotDestroy, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(831 + 55, 128 + 55), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(831 + 55, 323 + 55), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(831 + 55, 499 + 55), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateBoss1(new Vector2(1029 + 120, 233 + 120), boss1Texture)); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(772, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(795, 249)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(772, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(989, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateWall(new Vector2(795, 444) + wallCanNotDestroy.Bounds.Center.ToVector2(), wallCanNotDestroy, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(558 + 80, 538 + 60), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(784 + 80, 137 + 60), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(812 + 80, 332 + 60), enemyMonsterTexture)); break; case 4: LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(749, 248) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(966, 248) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(749, 443) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(772, 248)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(989, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateWall(new Vector2(795, 444) + wallCanNotDestroy.Bounds.Center.ToVector2(), wallCanNotDestroy, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(839, 127) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(839, 323) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(832, 499) + (new Vector2(55, 55)), enemyHumanTexture)); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(772, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(796, 248) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(772, 444) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall(new Vector2(795, 444) + wallCanNotDestroy.Bounds.Center.ToVector2(), wallCanNotDestroy, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateWall(new Vector2(993, 444) + wallCanNotDestroy.Bounds.Center.ToVector2(), wallCanNotDestroy, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1190, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(866, 333) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(960, 511) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(560, 525) + (new Vector2(80, 60)), enemyMonsterTexture)); var door41 = ObjectCreate.CreateWallStand(new Vector2(772, 443) + DoorStand.Bounds.Center.ToVector2(), DoorStand, "Door"); LightObj.Add(door41); var doorList41 = new List <IGameObject>(); doorList41.Add(door41); NightObj.Add(ObjectCreate.CreateTrigger(new Vector2(1114, 355) + (new Vector2(29, 41)), Trigger, doorList41)); break; case 5: LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(942, 248) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1159, 248) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(942, 444) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(965, 248)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1159, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateWall(new Vector2(965, 444) + wallCanNotDestroy.Bounds.Center.ToVector2(), wallCanNotDestroy, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(965, 127) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(788, 489) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(1015, 498) + (new Vector2(55, 55)), enemyHumanTexture)); NightObj.Add(ObjectCreate.CreateWall((new Vector2(818, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(1014, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(795, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1210, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(772, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(1053, 135) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(830, 175) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(930, 330) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(843, 525) + (new Vector2(80, 60)), enemyMonsterTexture)); var door51 = ObjectCreate.CreateWallStand(new Vector2(728, 443) + DoorStand.Bounds.Center.ToVector2(), DoorStand, "Door"); var door52 = ObjectCreate.CreateWall(new Vector2(748, 445) + Door.Bounds.Center.ToVector2(), Door, "Door"); LightObj.Add(door51); LightObj.Add(door52); var doorList51 = new List <IGameObject>(); doorList51.Add(door51); doorList51.Add(door52); NightObj.Add(ObjectCreate.CreateTrigger(new Vector2(1102, 545) + (new Vector2(29, 41)), Trigger, doorList51)); var door511 = ObjectCreate.CreateWallStand(new Vector2(795, 445) + DoorStand.Bounds.Center.ToVector2(), DoorStand, "Door"); var door512 = ObjectCreate.CreateWallStand(new Vector2(1206, 445) + DoorStand.Bounds.Center.ToVector2(), DoorStand, "Door"); var door513 = ObjectCreate.CreateWall(new Vector2(818, 445) + Door.Bounds.Center.ToVector2(), Door, "Door"); var door514 = ObjectCreate.CreateWall(new Vector2(1012, 444) + Door.Bounds.Center.ToVector2(), Door, "Door"); NightObj.Add(door511); NightObj.Add(door512); NightObj.Add(door513); NightObj.Add(door514); var doorList511 = new List <IGameObject>(); doorList511.Add(door511); doorList511.Add(door512); doorList511.Add(door514); doorList511.Add(door513); LightObj.Add(ObjectCreate.CreateTrigger(new Vector2(1034, 363) + (new Vector2(29, 41)), Trigger, doorList511)); break; case 6: LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(510, 250) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(510, 446) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(942, 444) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(533, 446)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1159, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateWall(new Vector2(965, 444) + wallCanNotDestroy.Bounds.Center.ToVector2(), wallCanNotDestroy, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(559, 323) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(700, 323) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(841, 323) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(975, 317) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(559, 498) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(777, 498) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateBoss2(new Vector2(991 + 30, 485 + 80), boss2Texture)); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1210, 52) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1210, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(552, 445) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(576, 445)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(621, 288)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(818, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(1014, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(772, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(795, 181) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(1006, 181) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(552, 338) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(759, 338) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(983, 326) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(874, 496) + (new Vector2(80, 60)), enemyMonsterTexture)); var door61 = ObjectCreate.CreateWallStand(new Vector2(748, 445) + DoorStand.Bounds.Center.ToVector2(), DoorStand, "Door"); var door62 = ObjectCreate.CreateWall(new Vector2(728, 443) + Door.Bounds.Center.ToVector2(), Door, "Door"); LightObj.Add(door61); LightObj.Add(door62); var doorList61 = new List <IGameObject>(); doorList61.Add(door61); doorList61.Add(door62); NightObj.Add(ObjectCreate.CreateTrigger(new Vector2(1103, 548) + (new Vector2(29, 41)), Trigger, doorList61)); var door611 = ObjectCreate.CreateWallStand(new Vector2(795, 445) + DoorStand.Bounds.Center.ToVector2(), DoorStand, "Door"); var door612 = ObjectCreate.CreateWallStand(new Vector2(1206, 445) + DoorStand.Bounds.Center.ToVector2(), DoorStand, "Door"); var door613 = ObjectCreate.CreateWall(new Vector2(818, 445) + Door.Bounds.Center.ToVector2(), Door, "Door"); var door614 = ObjectCreate.CreateWall(new Vector2(1012, 444) + Door.Bounds.Center.ToVector2(), Door, "Door"); NightObj.Add(door611); NightObj.Add(door612); NightObj.Add(door613); NightObj.Add(door614); var doorList611 = new List <IGameObject>(); doorList611.Add(door611); doorList611.Add(door612); doorList611.Add(door614); doorList611.Add(door613); LightObj.Add(ObjectCreate.CreateTrigger(new Vector2(1102, 545) + (new Vector2(29, 41)), Trigger, doorList611)); break; case 7: LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(725, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(942, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1160, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(942, 423) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1160, 423) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(747, 228)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(965, 228)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(965, 423)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(725, 423) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(1063, 105) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(816, 302) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(978, 300) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(978, 481) + (new Vector2(55, 55)), enemyHumanTexture)); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(936, 94) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(514, 231) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(514, 430) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1210, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(540, 232)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(738, 231)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(818, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(1014, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(543, 419)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(741, 419)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(772, 444) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(514, 121) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(724, 115) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(987, 181) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(577, 310) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(830, 315) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(560, 505) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(830, 491) + (new Vector2(80, 60)), enemyMonsterTexture)); break; case 8: LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(620, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(840, 30) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(840, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1058, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(644, 228)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(862, 228)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(1082, 228)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(1083, 423)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(621, 423) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(886, 105) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(1010, 105) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(1134, 105) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(680, 300) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(898, 3001) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(1121, 300) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(900, 481) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(1120, 481) + (new Vector2(55, 55)), enemyHumanTexture)); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(574, 119) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(994, 94) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(794, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1211, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(597, 225)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(794, 225)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(597, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(817, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(1014, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(596, 447)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(570, 445) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(789, 120) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(1029, 97) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(582, 335) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(844, 335) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(358, 527) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(594, 527) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(994, 476) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(830, 589) + (new Vector2(80, 60)), enemyMonsterTexture)); break; case 9: LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(648, 195) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(844, 30) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(624, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(844, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1062, 228) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(648, 228)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(866, 228)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(1086, 228)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWall((new Vector2(1087, 423)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); LightObj.Add(ObjectCreate.CreateWallStand(new Vector2(625, 423) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateWall(new Vector2(433, 423) + wallCanNotDestroy.Bounds.Center.ToVector2(), wallCanNotDestroy, "CanNotDestroy")); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(700, 93) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(902, 96) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(481, 290) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(671, 300) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(907, 300) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(1125, 290) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(467, 481) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(904, 481) + (new Vector2(55, 55)), enemyHumanTexture)); LightObj.Add(ObjectCreate.CreateEnemyHuman(new Vector2(1125, 485) + (new Vector2(55, 55)), enemyHumanTexture)); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(597, 25) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(324, 240) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(794, 249) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(1014, 248) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(324, 444) + wallCanDestroyStand.Bounds.Center.ToVector2(), wallCanDestroyStand, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(597, 225)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(794, 225)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(817, 253)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(597, 289)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(1041, 341)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWall((new Vector2(596, 447)) + wallCanDestroy.Bounds.Center.ToVector2(), wallCanDestroy, "CanDestroy")); NightObj.Add(ObjectCreate.CreateWallStand(new Vector2(570, 445) + wallCanNotDestroyStand.Bounds.Center.ToVector2(), wallCanNotDestroyStand, "CanNotDestroy")); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(637, 119) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(849, 117) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(1061, 119) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(1051, 233) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(582, 335) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(358, 417) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(358, 527) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(594, 527) + (new Vector2(80, 60)), enemyMonsterTexture)); NightObj.Add(ObjectCreate.CreateEnemyMonster(new Vector2(829, 576) + (new Vector2(80, 60)), enemyMonsterTexture)); LightObj.Add(ObjectCreate.CreateBoss3(new Vector2(1041, 506), boss3Texture)); break; case 10: break; } }