public Casper(Texture2D casper, Rectangle hitbox) : base(2, casper, hitbox) { this.casper = casper; this.Position = new Vector2(840, 250); this.Velocity = new Vector2(0,0); this.Speed = 0.01f; camera = new Camera(Game1.GetGame().GraphicsDevice.Viewport); animation = new Animation(); }
public Casper(Texture2D casper, Rectangle hitbox) : base(2, casper, hitbox) { this.casper = casper; this.Position = new Vector2(Res.gI().ScaleX(200), Res.gI().ScaleY(925)); this.Velocity = new Vector2(0,0); this.Speed = 0.01f; camera = new Camera(Game1.GetGame().GraphicsDevice.Viewport); animation = new Animation(); List<Texture2D> textures = new List<Texture2D>(); textures.Add(Content_Manager.getInstance().Textures["particule"]); particleEngine = new ParticleEngine(textures, new Vector2(Res.gI().ScaleX(400), Res.gI().ScaleY(240))); healthpoint = new HealthPoint(13); }
public void draw(SpriteBatch spritebatch, Camera camera, GameType gametype) { if (gametype == GameType.Menu_Play_Solo_world1_lvl1 || gametype == GameType.Menu_Play_Solo_world1_lvl2 || gametype == GameType.Menu_Play_Solo_world1_lvl3) { Hp1.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44), (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp1.Update(); Hp1.Draw(spritebatch); if (healthpoint > 3) { Hp2.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 2, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp2.Update(); Hp2.Draw(spritebatch); } if (healthpoint > 6) { Hp3.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 3, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp3.Update(); Hp3.Draw(spritebatch); } if (healthpoint > 9) { Hp4.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 4, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp4.Update(); Hp4.Draw(spritebatch); } if (healthpoint > 12) { Hp5.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 5, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp5.Update(); Hp5.Draw(spritebatch); } } else { spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X, (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); if (healthpoint > 3) spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X + Res.gI().ScaleX(44), (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); if (healthpoint > 6) spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X + Res.gI().ScaleX(44) * 2, (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); if (healthpoint > 9) spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X + Res.gI().ScaleX(44) * 3, (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); if (healthpoint > 12) spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X + Res.gI().ScaleX(44) * 4, (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); } }
public void draw(SpriteBatch spritebatch, Camera camera) { Hp1.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44), (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp1.Update(); Hp1.Draw(spritebatch); if (healthpoint > 3) { Hp2.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44)*2, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp2.Update(); Hp2.Draw(spritebatch); } if (healthpoint > 6) { Hp3.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44)*3, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp3.Update(); Hp3.Draw(spritebatch); } if (healthpoint > 9) { Hp4.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44)*4, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp4.Update(); Hp4.Draw(spritebatch); } if (healthpoint > 12) { Hp5.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44)*5, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp5.Update(); Hp5.Draw(spritebatch); } // spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X, (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); //if (healthpoint > 3) // spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X + Res.gI().ScaleX(44), (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); //if (healthpoint > 6) // spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X + Res.gI().ScaleX(44) * 2, (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); //if (healthpoint > 9) // spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X + Res.gI().ScaleX(44) * 3, (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); //if (healthpoint > 12) // spritebatch.Draw(Content_Manager.getInstance().Textures["enemy1"], new Rectangle((int)camera.centre.X + Res.gI().ScaleX(44) * 4, (int)camera.centre.Y, Res.gI().ScaleX(44), Res.gI().ScaleY(40)), Color.White); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); Content_Manager.getInstance().LoadTextures(Content); fontdebug = Content.Load<SpriteFont>("Fontdebug"); SoundManager.LoadContent(Content); MediaPlayer.Play(SoundManager.menu); MediaPlayer.IsRepeating = true; screenmanager = new ScreenManager(gameState, this); camera = screenmanager.camera; // TODO: use this.Content to load your game content here }
public Shots() { ammunition = new List<Bullet>(); camera = new Camera(Game1.GetGame().GraphicsDevice.Viewport); }
public ScreenManager(GameType gametype, Game1 game) { menubase = new Menu_Base(Content_Manager.getInstance().Textures["menubase"]); menuoptions = new Menu_Options(Content_Manager.getInstance().Textures["menuoptions"]); menuplay = new Menu_Play(Content_Manager.getInstance().Textures["menuplay"]); menuSolo = new Menu_Play_Solo(Content_Manager.getInstance().Textures["menusolo"]); menusolo1 = new Menu_Play_Solo_World1(Content_Manager.getInstance().Textures["solo1"]); menusolo2 = new Menu_Play_Solo_World2(Content_Manager.getInstance().Textures["solo2"]); menuMulti = new Menu_Play_Multi(Content_Manager.getInstance().Textures["menumulti"]); menupauseoption = new Menu_Pause_Options(Content_Manager.getInstance().Textures["menupauseoption"]); casper = new Casper(Content_Manager.getInstance().Textures["Casper"], new Rectangle(0, 0, 16, 34)); player2 = new Casper(Content_Manager.getInstance().Textures["Casper"], new Rectangle(50, 50, 16, 34)); casper2 = new Casper(Content_Manager.getInstance().Textures["Player1"], new Rectangle(50, 50, 0, 0)); controls = new Controls(casper.Position, casper.Velocity, casper.Speed, Keys.W, Keys.A, Keys.D, Keys.S); controlsPlayer2 = new Controls(player2.Position, player2.Velocity, player2.Speed, Keys.Up, Keys.Left, Keys.Right, Keys.Down); controlsWorld2 = new Controls(casper2.Position, casper2.Velocity, casper2.Speed, Keys.Up, Keys.Left, Keys.Right, Keys.Down); world2vert1 = new Decors(Content_Manager.getInstance().Textures["vert"], new Rectangle(-1680, 0, 1680, 1050)); world2vert2 = new Decors(Content_Manager.getInstance().Textures["vert"], new Rectangle(1680, 0, 1680, 1050)); camera = new Camera(Game1.GetGame().GraphicsDevice.Viewport); game.casperr = casper; decors = new Decors(Content_Manager.getInstance().Textures["Level1"], new Rectangle(0, 0, 1680, 1050)); decors1 = new Decors(Content_Manager.getInstance().Textures["Level1"], new Rectangle(1680, 0, 1680, 1050)); decors2 = new Decors(Content_Manager.getInstance().Textures["Level1"], new Rectangle(-1680, 0, 1680, 1050)); world2 = new Decors(Content_Manager.getInstance().Textures["world2"], new Rectangle(0, 0, 1680, 1050)); menupause = new Menu_Pause(Content_Manager.getInstance().Textures["menupause"]); level1 = new Level1(new Vector2(0, 0)); obstacles = new Obstacles(level1.getList()); previousgametype = GameType.Exit; this.gametype = gametype; }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); Content_Manager.getInstance().LoadTextures(Content); fontdebug = Content.Load<SpriteFont>("Fontdebug"); //casperr = new Casper(Content_Manager.getInstance().Textures["Casper"], new Rectangle(400, 500, 130, 130)); //decors = new Decors(Content_Manager.getInstance().Textures["Level1"], new Rectangle(0, 0, 1680, 1050)); SoundManager.LoadContent(Content); MediaPlayer.Play(SoundManager.menu); MediaPlayer.IsRepeating = true; screenmanager = new ScreenManager(gameState, this); camera = screenmanager.camera; // TODO: use this.Content to load your game content here }
public ScreenManager(GameType gametype, Game1 game) { menubase = new Menu_Base(Content_Manager.getInstance().Textures["menubase"]); menuoptions = new Menu_Options(Content_Manager.getInstance().Textures["menuoptions"]); menuplay = new Menu_Play(Content_Manager.getInstance().Textures["menuplay"]); menuSolo = new Menu_Play_Solo(Content_Manager.getInstance().Textures["menusolo"]); menusolo1 = new Menu_Play_Solo_World1(Content_Manager.getInstance().Textures["solo1"]); menusolo2 = new Menu_Play_Solo_World2(Content_Manager.getInstance().Textures["solo2"]); menuMulti = new Menu_Play_Multi(Content_Manager.getInstance().Textures["menumulti"]); menupauseoption = new Menu_Pause_Options(Content_Manager.getInstance().Textures["menupauseoption"]); camera = new Camera(Game1.GetGame().GraphicsDevice.Viewport); isThere = false; d_w1l1_1 = new Decors(Content_Manager.getInstance().Textures["W1L1_1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l1_2 = new Decors(Content_Manager.getInstance().Textures["W1L1_2"], new Rectangle(Res.gI().ScaleX(2520), 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l2_1 = new Decors(Content_Manager.getInstance().Textures["W1L2_1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l2_2 = new Decors(Content_Manager.getInstance().Textures["W1L2_2"], new Rectangle(Res.gI().ScaleX(2520), 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l3 = new Decors(Content_Manager.getInstance().Textures["W1L3"], new Rectangle(0, 0, Res.gI().ScaleX(2240), Res.gI().ScaleY(1050))); teleport1 = new Rectangle(1240, 400, 80, 80); teleport2 = new Rectangle(3480, 480, 80, 280); List<Texture2D> textures = new List<Texture2D>(); textures.Add(Content_Manager.getInstance().Textures["tp"]); tp1 = tp2 = tp3=tp4 = new ParticleEngine(textures, new Vector2(0, 0)); Game1.GetGame().casperr = casper; d_w2l1 = new Decors(Content_Manager.getInstance().Textures["W2L1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w2l2 = new Decors(Content_Manager.getInstance().Textures["W2L2"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w2l3 = new Decors(Content_Manager.getInstance().Textures["W2L3"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); menupause = new Menu_Pause(Content_Manager.getInstance().Textures["menupause"]); w1l1 = new W1L1(); w1l2 = new W1L2(); w1l3 = new W1L3(); w2l1 = new W2L1(); w2l2 = new W2L2(); w2l3 = new W2L3(); spikes = new Spikes(); sw1l2 = new Sw1l2(); sw1l3 = new Sw1l3(); previousgametype = GameType.Exit; this.gametype = gametype; //List<Rectangle> enemies = spikes.getList().Concat<Rectangle>(AI_w1l1.getListRectangle()).ToList<Rectangle>; }
public ScreenManager(GameType gametype, Game1 game) { menubase = new Menu_Base(Content_Manager.getInstance().Textures["menubase"]); menuoptions = new Menu_Options(Content_Manager.getInstance().Textures["menuoptions"]); menuplay = new Menu_Play(Content_Manager.getInstance().Textures["menuplay"]); menuSolo = new Menu_Play_Solo(Content_Manager.getInstance().Textures["menusolo"]); menusolo1 = new Menu_Play_Solo_World1(Content_Manager.getInstance().Textures["solo1"]); menusolo2 = new Menu_Play_Solo_World2(Content_Manager.getInstance().Textures["solo2"]); menuMulti = new Menu_Play_Multi(Content_Manager.getInstance().Textures["menumulti"]); menupauseoption = new Menu_Pause_Options(Content_Manager.getInstance().Textures["menupauseoption"]); casper = new Casper(Content_Manager.getInstance().Textures["Casper"], new Rectangle(0, 0, Res.gI().ScaleX(16), Res.gI().ScaleY(34))); player2 = new Casper(Content_Manager.getInstance().Textures["Casper"], new Rectangle(Res.gI().ScaleX(50), Res.gI().ScaleY(50), Res.gI().ScaleX(16), Res.gI().ScaleY(34))); casper2 = new Casper(Content_Manager.getInstance().Textures["Player1"], new Rectangle(Res.gI().ScaleX(9000), Res.gI().ScaleY(9000), Res.gI().ScaleX(31), Res.gI().ScaleY(50))); controls = new Controls(casper.Position, casper.Velocity, casper.Speed, Keys.W, Keys.A, Keys.D, Keys.S); controlsPlayer2 = new Controls(player2.Position, player2.Velocity, player2.Speed, Keys.Up, Keys.Left, Keys.Right, Keys.Down); controlsWorld2 = new Controls(casper2.Position, casper2.Velocity, casper2.Speed, Keys.W, Keys.A, Keys.D, Keys.S); camera = new Camera(Game1.GetGame().GraphicsDevice.Viewport); respawn = true; isThere = false; d_w1l1_1 = new Decors(Content_Manager.getInstance().Textures["W1L1_1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l1_2 = new Decors(Content_Manager.getInstance().Textures["W1L1_2"], new Rectangle(Res.gI().ScaleX(2520), 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l2_1 = new Decors(Content_Manager.getInstance().Textures["W1L2_1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l2_2 = new Decors(Content_Manager.getInstance().Textures["W1L2_2"], new Rectangle(Res.gI().ScaleX(2520), 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l3 = new Decors(Content_Manager.getInstance().Textures["W1L3"], new Rectangle(0, 0, Res.gI().ScaleX(2240), Res.gI().ScaleY(1050))); teleport1 = new Rectangle(1240, 400, 80, 80); teleport2 = new Rectangle(3480, 480, 80, 280); List<Texture2D> textures = new List<Texture2D>(); textures.Add(Content_Manager.getInstance().Textures["tp"]); tp1 = tp2 = tp3=tp4 = new ParticleEngine(textures, new Vector2(0, 0)); shots = new Shots(); shots2 = new Shots(); shots3 = new Shots(); Game1.GetGame().casperr = casper; d_w2l1 = new Decors(Content_Manager.getInstance().Textures["W2L1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w2l2 = new Decors(Content_Manager.getInstance().Textures["W2L2"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w2l3 = new Decors(Content_Manager.getInstance().Textures["W2L3"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); menupause = new Menu_Pause(Content_Manager.getInstance().Textures["menupause"]); w1l1 = new W1L1(); w1l2 = new W1L2(); w1l3 = new W1L3(); w2l1 = new W2L1(); w2l2 = new W2L2(); w2l3 = new W2L3(); spikes = new Spikes(); sw1l2 = new Sw1l2(); sw1l3 = new Sw1l3(); previousgametype = GameType.Exit; //AI1 = new AI_basic(Content_Manager.getInstance().Textures["enemy1"], Content_Manager.getInstance().Textures["enemy2"], new Rectangle(Res.gI().ScaleX(960), Res.gI().ScaleY(500), Res.gI().ScaleX(40), Res.gI().ScaleY(40)), new Vector2(3,0),300); AI_w1l1 = new AI_W1L1(); AI_w1l2 = new AI_W1L2(); AI_w2l1 = new AI_W2L1(); AI_w2l2 = new AI_W2L2(); AI_w2l2_2 = new AI_W2L2_2(); AI_w2l3 = new AI_W2L3(); AI2 = new AI_moderate(Content_Manager.getInstance().Textures["enemy1"], new Rectangle(Res.gI().ScaleX(100), Res.gI().ScaleY(100), Res.gI().ScaleX(50), Res.gI().ScaleY(50))); this.gametype = gametype; //List<Rectangle> enemies = spikes.getList().Concat<Rectangle>(AI_w1l1.getListRectangle()).ToList<Rectangle>; }
public void draw(SpriteBatch spritebatch, Camera camera) { if (world1) { Hp1.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44), (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp1.Update(); Hp1.Draw(spritebatch); if (healthpoint > 3) { Hp2.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 2, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp2.Update(); Hp2.Draw(spritebatch); } if (healthpoint > 6) { Hp3.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 3, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp3.Update(); Hp3.Draw(spritebatch); } if (healthpoint > 9) { Hp4.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 4, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp4.Update(); Hp4.Draw(spritebatch); } if (healthpoint > 12) { Hp5.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 5, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp5.Update(); Hp5.Draw(spritebatch); } } else { Hp12.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44), (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp12.Update(); Hp12.Draw(spritebatch); if (healthpoint > 1) { Hp22.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 2, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp22.Update(); Hp22.Draw(spritebatch); } if (healthpoint > 2) { Hp32.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 3, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp32.Update(); Hp32.Draw(spritebatch); } if (healthpoint > 3) { Hp42.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 4, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp42.Update(); Hp42.Draw(spritebatch); } if (healthpoint > 4) { Hp52.EmitterLocation = new Vector2((int)camera.centre.X + Res.gI().ScaleX(44) * 5, (int)camera.centre.Y + Res.gI().ScaleX(44)); Hp52.Update(); Hp52.Draw(spritebatch); } } }
public ScreenManager(GameType gametype, Game1 game) { menubase = new Menu_Base(Content_Manager.getInstance().Textures["menubase"]); menuoptions = new Menu_Options(Content_Manager.getInstance().Textures["menuoptions"]); menuplay = new Menu_Play(Content_Manager.getInstance().Textures["menuplay"]); menuSolo = new Menu_Play_Solo(Content_Manager.getInstance().Textures["menusolo"]); menusolo1 = new Menu_Play_Solo_World1(Content_Manager.getInstance().Textures["solo1"]); menusolo2 = new Menu_Play_Solo_World2(Content_Manager.getInstance().Textures["solo2"]); menuMulti = new Menu_Play_Multi(Content_Manager.getInstance().Textures["menumulti"]); menupauseoption = new Menu_Pause_Options(Content_Manager.getInstance().Textures["menupauseoption"]); casper = new Casper(Content_Manager.getInstance().Textures["Casper"], new Rectangle(0, 0, Res.gI().ScaleX(16), Res.gI().ScaleY(34))); player2 = new Casper(Content_Manager.getInstance().Textures["Casper"], new Rectangle(Res.gI().ScaleX(50), Res.gI().ScaleY(50), Res.gI().ScaleX(16), Res.gI().ScaleY(34))); casper2 = new Casper(Content_Manager.getInstance().Textures["Player1"], new Rectangle(Res.gI().ScaleX(50), Res.gI().ScaleY(50), Res.gI().ScaleX(31), Res.gI().ScaleY(50))); controls = new Controls(casper.Position, casper.Velocity, casper.Speed, Keys.W, Keys.A, Keys.D, Keys.S); controlsPlayer2 = new Controls(player2.Position, player2.Velocity, player2.Speed, Keys.Up, Keys.Left, Keys.Right, Keys.Down); controlsWorld2 = new Controls(casper2.Position, casper2.Velocity, casper2.Speed, Keys.W, Keys.A, Keys.D, Keys.S); camera = new Camera(Game1.GetGame().GraphicsDevice.Viewport); respawn = true; d_w1l1_1 = new Decors(Content_Manager.getInstance().Textures["W1L1_1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l1_2 = new Decors(Content_Manager.getInstance().Textures["W1L1_2"], new Rectangle(Res.gI().ScaleX(2520), 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l2_1 = new Decors(Content_Manager.getInstance().Textures["W1L2_1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l2_2 = new Decors(Content_Manager.getInstance().Textures["W1L2_2"], new Rectangle(Res.gI().ScaleX(2520), 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w1l3 = new Decors(Content_Manager.getInstance().Textures["W1L3"], new Rectangle(0, 0, Res.gI().ScaleX(2240), Res.gI().ScaleY(1050))); Game1.GetGame().casperr = casper; d_w2l1 = new Decors(Content_Manager.getInstance().Textures["W2L1"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w2l2 = new Decors(Content_Manager.getInstance().Textures["W2L2"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); d_w2l3 = new Decors(Content_Manager.getInstance().Textures["W2L3"], new Rectangle(0, 0, Res.gI().ScaleX(2520), Res.gI().ScaleY(1050))); menupause = new Menu_Pause(Content_Manager.getInstance().Textures["menupause"]); w1l1 = new W1L1(); w1l2 = new W1L2(); w1l3 = new W1L3(); w2l1 = new W2L1(); w2l2 = new W2L2(); w2l3 = new W2L3(); spikes = new Spikes(); sw1l2 = new Sw1l2(); sw1l3 = new Sw1l3(); previousgametype = GameType.Exit; AI1 = new AI_basic(Content_Manager.getInstance().Textures["enemy1"], Content_Manager.getInstance().Textures["enemy2"], new Rectangle(0, 0, Res.gI().ScaleX(20), Res.gI().ScaleY(20))); AI2 = new AI_moderate(Content_Manager.getInstance().Textures["enemy1"], new Rectangle(Res.gI().ScaleX(100), Res.gI().ScaleY(100), Res.gI().ScaleX(50), Res.gI().ScaleY(50))); this.gametype = gametype; }