public MenuButton(ContentManager getContent, int getWidth, int getHeight) { SpriteAnim = new AnimSprite(getContent, "graphics/buttonss", getWidth, getHeight, 1, 3); ButtonText = new Font(getContent); ButtonSounds[0] = getContent.Load <SoundEffect>("sound/MenuSelectionRollover"); ButtonSounds[1] = getContent.Load <SoundEffect>("sound/MenuSelectionClick"); }
public Player(ContentManager getContent, Rectangle getScreenSize) { ScreenSize = getScreenSize; Content = getContent; GotoPos = new Vector2(ScreenSize.X / 2 + 1, ScreenSize.Y - 50); Sprite = new AnimSprite(getContent, "graphics/playerss", 48, 48, 1, 7); Sprite.currentFrame = 3; Position.X = getScreenSize.X / 2; Position.Y = ScreenSize.Y - 50; SecondaryFireAnim = new AnimSprite(getContent, "graphics/Secondfiress", ScreenSize.X / 2, ScreenSize.Y, 1, 8); SecondaryFireChargeUpAnim = new AnimSprite(getContent, "graphics/plasmaball2ss", 164, 164, 4, 5); CollisionBoxTexture = Content.Load <Texture2D>("graphics/collisionbox"); BackBurnerEffect = new AnimSprite(getContent, "graphics/BackBurner2SS", 32, 32, 4, 1); ShieldEffect = new AnimSprite(getContent, "graphics/shieldss", Sprite.Width * 2, Sprite.Height * 2, 1, 8); Cursor = new AnimSprite(getContent, "graphics/cursor", 50, 35, 1, 3); PlayerShootSFX[0] = Content.Load <SoundEffect>("sound/playershoot4"); PlayerShootSFX[1] = Content.Load <SoundEffect>("sound/playershoot5"); PlayerAltSFX[0] = Content.Load <SoundEffect>("sound/AltChargeUp"); PlayerAltSFX[1] = Content.Load <SoundEffect>("sound/AltFire"); for (int i = 0; i < 2; i++) { PlayerAltSFXIns[i] = PlayerAltSFX[i].CreateInstance(); PlayerAltSFXIns[i].Volume = 0.1f; } PlayerAltSFXIns[1].Pitch = 0.5f; }
public Boss(ContentManager getContent) { Sprite = new BasicSprite(getContent, "graphics/boss", 700, 128); for (int i = 0; i < BackBurners.Length; i++) { BackBurners[i] = new AnimSprite(getContent, "graphics/pbullet2", 128, 64, 2, 1); } for (int i = 0; i < 2; i++) { Turret[i] = new Enemy(getContent, "graphics/bossturret2", 64, 96); Turret[i].MaxHealth = 1550; Turret[i].Health = Turret[i].MaxHealth; Turret[i].HasWeapon = true; Turret[i].WeaponType = Enemy.EWeaponType.BossWepSide; } Turret[2] = new Enemy(getContent, "graphics/bossturret1", 128, 128); Turret[2].MaxHealth = 3550; Turret[2].Health = Turret[2].MaxHealth; Turret[0]._spriteType = Enemy.ESpriteType.BASIC; Turret[1]._spriteType = Enemy.ESpriteType.BASIC; Turret[2]._spriteType = Enemy.ESpriteType.BASIC; MainCannon = new AnimSprite(getContent, "graphics/bossmaincannonss", 125, 650, 1, 3); MainCannonChargeUp = new AnimSprite(getContent, "graphics/plasmaball2SS", 128, 128, 4, 5); }
public Bullet(ContentManager getContent, EBulletType getBulletType, string getTexture, int getWidth, int getHeight, int getRows, int getColumns) { Content = getContent; SpriteAnim = new AnimSprite(Content, getTexture, getWidth, getHeight, getRows, getColumns); if (getBulletType == EBulletType.Player) { ShootAnim = new AnimSprite(Content, "graphics/ShootEffect1SS", getWidth * 2, getHeight, 2, 1); ExplosionAnim = new AnimSprite(Content, "graphics/BulletExplosionSS", getWidth, getHeight, 1, 8); } else if (getBulletType == EBulletType.Enemy) { ShootAnim = new AnimSprite(Content, "graphics/ShootEffect2SS", getWidth * 6, getHeight * 2, 2, 1); ExplosionAnim = new AnimSprite(Content, "graphics/BulletExplosion4SS", getWidth * 2, getHeight * 2, 1, 8); } }
public BasicItem(ContentManager getContent, string getTexture, string getSound, int getWidth, int getHeight, int getRows, int getColumns) { SpriteAnim = new AnimSprite(getContent, getTexture, getWidth, getHeight, getRows, getColumns); SpriteType = ESpriteType.ANIM; RandXDirNum = RandXDir.Next(2); if (RandXDirNum == 0) { IsLeft = true; IsUp = false; } else { IsLeft = false; IsUp = false; } CollectSFX = getContent.Load <SoundEffect>(getSound); CollectSFXIns = CollectSFX.CreateInstance(); }
public Enemy(ContentManager getContent, string getTexture, int getWidth, int getHeight) { Content = getContent; DisplayScore = new Font(getContent); Sprite = new BasicSprite(getContent, getTexture, getWidth, getHeight); ExplosionAnim = new AnimSprite(Content, "graphics/Explosion2SS", getWidth * 2, getHeight * 2, 1, 13); ShockWaveAnim = new AnimSprite(Content, "graphics/shockwaveSS", getWidth * 3, getHeight * 3, 1, 13); WarpInEffect = new AnimSprite(Content, "graphics/warpinss", Sprite.Width * 4, Sprite.Height * 3, 1, 9); ExplosionSFX = Content.Load <SoundEffect>("sound/explosion"); ExplosionSFXIns = ExplosionSFX.CreateInstance(); ExplosionSFXIns.Volume = 0.1f; WarpInSFX = Content.Load <SoundEffect>("sound/warpin"); WarpInSFXIns = WarpInSFX.CreateInstance(); WarpInSFXIns.Volume = 0.05f; WarpInSFXIns.Pitch = 0.3f; }
public Background_effects(ContentManager getContent, string getTexture, int getWidth, int getHeight, int getRows, int getColumns) { SpriteType = ESpriteType.ANIM; SpriteAnim = new AnimSprite(getContent, getTexture, getWidth, getHeight, getRows, getColumns); }