public ArtilleryBoss() : base() { if (AeroGame.lagTest) texture = AeroGame.LoadTextureStream("ArtilleryBoss"); else texture = AeroGame.ContentManager.Load<Texture2D>("Textures\\ArtilleryBoss"); textureData = new Color[texture.Width * texture.Height]; texture.GetData(textureData); soundFireBullet = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\EnemyLaser"); soundFireBomb = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\Bomb"); /*pieces = new ObjectPiece[8]; pieces[0] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Boss3Piece1"), new Vector2((float)Math.Cos(Math.PI), (float)Math.Sin(Math.PI))); pieces[1] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Boss3Piece2"), new Vector2((float)Math.Cos(-2 * Math.PI / 3), (float)Math.Sin(-2 * Math.PI / 3)));// pieces[2] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Boss3Piece3"), new Vector2((float)Math.Cos(-Math.PI / 3), (float)Math.Sin(-Math.PI / 3))); pieces[3] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Boss3Piece4"), new Vector2((float)Math.Cos(0), (float)Math.Sin(0))); pieces[4] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Boss3Piece5"), new Vector2((float)Math.Cos(-5 * Math.PI / 6), (float)Math.Sin(-5 * Math.PI / 6)));// pieces[5] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Boss3Piece6"), new Vector2((float)Math.Cos(3 * Math.PI / 4), (float)Math.Sin(3 * Math.PI / 4))); pieces[6] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Boss3Piece7"), new Vector2((float)Math.Cos(Math.PI / 4), (float)Math.Sin(Math.PI / 4))); pieces[7] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Boss3Piece8"), new Vector2((float)Math.Cos(-Math.PI / 6), (float)Math.Sin(-Math.PI / 6))); */ //origin = new Vector2(texture.Width / 2, texture.Height / 2); position = new Vector2(0, texture.Height * -1.0f); center = new Vector2(position.X + texture.Width / 2.0f, position.Y); mainWeapon = new PrimaryWeapon[1]; mainWeapon[0] = new TriCannon(false); mainWeapon[0].SetCoolDown(1.0f); secondaryWeapon = new SecondaryWeapon[1]; secondaryWeapon[0] = new FragmentationBombCannon(false, 1.0f); secondaryWeapon[0].CoolDownLimit = 5.0f; explodingAnimation = new LargeExplosionAnimation(texture); health = 2000; firingAngle = 0; speed = 300; }
public FatBoss() : base() { if (AeroGame.lagTest) texture = AeroGame.LoadTextureStream("FatBoss"); else texture = AeroGame.ContentManager.Load<Texture2D>("Textures\\FatBoss"); textureData = new Color[texture.Width * texture.Height]; texture.GetData(textureData); if (AeroGame.lagTest) texture1 = AeroGame.LoadTextureStream("FatBoss2"); else texture1 = AeroGame.ContentManager.Load<Texture2D>("Textures\\FatBoss2"); textureData1 = new Color[texture.Width * texture.Height]; texture1.GetData(textureData); soundFireBullet = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\EnemyLaser"); soundFireBomb = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\Bomb"); position = new Vector2(0, texture.Height * -1.0f); center = new Vector2(position.X + texture.Width / 2.0f, position.Y); standardCannon = new StandardCannon(false); triCannon = new TriCannon(false); quintuCannon = new QuintuCannon(false); standardCannon2 = new StandardCannon(false); triCannon2 = new TriCannon(false); quintuCannon2 = new QuintuCannon(false); mainWeapon = new PrimaryWeapon[2]; mainWeapon[0] = new StandardCannon(false); mainWeapon[0].SetCoolDown(1.0f); mainWeapon[1] = new StandardCannon(false); mainWeapon[1].SetCoolDown(1.0f); secondaryWeapon = new SecondaryWeapon[1]; secondaryWeapon[0] = new FragmentationBombCannon(false, 1.0f); secondaryWeapon[0].CoolDownLimit = 9.0f; explodingAnimation = new LargeExplosionAnimation(texture); health = 100 * Player.MainWeaponPower; ; firingAngle = 0; speed = 200; velocity = new Vector2(0.0f, 0.0f); theta = 0; mouthCooldown = 0; }
public TwinTwo() : base() { if (AeroGame.lagTest) texture = AeroGame.LoadTextureStream("TwinBossRight"); else texture = AeroGame.ContentManager.Load<Texture2D>("Textures\\TwinBossRight"); textureData = new Color[texture.Width * texture.Height]; texture.GetData(textureData); soundFireBullet = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\EnemyLaser"); //origin = new Vector2(texture.Width / 2, texture.Height / 2); position = new Vector2(0, texture.Height * -1.0f); center = new Vector2(position.X + texture.Width / 2.0f, position.Y); mainWeapon = new PrimaryWeapon[1]; mainWeapon[0] = new TriCannon(false); mainWeapon[0].SetCoolDown(1.0f); explodingAnimation = new LargeExplosionAnimation(texture); health = 1000; firingAngle = 0; seperated = false; }
public TwinBoss() : base() { if (AeroGame.lagTest) texture = AeroGame.LoadTextureStream("TwinBossCenter"); else texture = AeroGame.ContentManager.Load<Texture2D>("Textures\\TwinBossCenter"); textureData = new Color[texture.Width * texture.Height]; texture.GetData(textureData); soundFireBullet = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\EnemyLaser"); soundFireBomb = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\Bomb"); /*pieces = new ObjectPiece[8]; pieces[0] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16"), new Vector2((float)Math.Cos(Math.PI), (float)Math.Sin(Math.PI))); pieces[1] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16"), new Vector2((float)Math.Cos(-2 * Math.PI / 3), (float)Math.Sin(-2 * Math.PI / 3)));// pieces[2] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16"), new Vector2((float)Math.Cos(-Math.PI / 3), (float)Math.Sin(-Math.PI / 3))); pieces[3] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16"), new Vector2((float)Math.Cos(0), (float)Math.Sin(0))); pieces[4] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16"), new Vector2((float)Math.Cos(-5 * Math.PI / 6), (float)Math.Sin(-5 * Math.PI / 6)));// pieces[5] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16"), new Vector2((float)Math.Cos(3 * Math.PI / 4), (float)Math.Sin(3 * Math.PI / 4))); pieces[6] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16"), new Vector2((float)Math.Cos(Math.PI / 4), (float)Math.Sin(Math.PI / 4))); pieces[7] = new ObjectPiece(AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16"), new Vector2((float)Math.Cos(-Math.PI / 6), (float)Math.Sin(-Math.PI / 6))); */ //origin = new Vector2(texture.Width / 2, texture.Height / 2); //soundFireBullet = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\EnemyLaser"); position = new Vector2(0, texture.Height * -1.0f); center = new Vector2(position.X + texture.Width / 2.0f, position.Y); mainWeapon = new PrimaryWeapon[1]; mainWeapon[0] = new QuintuCannon(false); mainWeapon[0].SetCoolDown(1.0f); secondaryWeapon = new SecondaryWeapon[1]; secondaryWeapon[0] = new FragmentationBombCannon(false, 1.0f); secondaryWeapon[0].CoolDownLimit = 5.0f; explodingAnimation = new LargeExplosionAnimation(texture); health = 1000; //firingAngle = 0; seperated = false; twinOne = new TwinOne(); twinTwo = new TwinTwo(); shield = new Shield(); speed = 150.0f; }