public GUI(ContentManager getContent, Rectangle getScreenSize) { ScreenSize = getScreenSize; Content = getContent; ScoreFont = new Font(getContent); HealthFont = new Font(getContent); WepLvlFont = new Font(getContent); //Health Bar HealthBar = new BasicSprite(getContent, "graphics/healthbar", 30, (int)PlayerHealth); //Alt Bar AltBar = new BasicSprite(getContent, "graphics/altbar", 30, (int)AltBarAmount); AltReady = new Font(getContent); AltReadySFX = Content.Load <SoundEffect>("sound/altready"); AltReadyInsSFX = AltReadySFX.CreateInstance(); AltReadyInsSFX.Volume = 0.05f; //Bar Background for (int i = 0; i < 2; i++) { BarBackground[i] = new BasicSprite(Content, "graphics/barbackground", HealthBar.Width + 10, HealthBar.Height + 10); } for (int i = 0; i < 3; i++) { _Lives[i] = new Lives(getContent); } }
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 Options(ContentManager getContent, Rectangle getScreenSize) { ScreenSize = getScreenSize; OptionsBackgroundImage = new BasicSprite(getContent, "graphics/optionsbackground", ScreenSize.Width, ScreenSize.Height); for (int i = 0; i < 3; i++) { Buttons[i] = new MenuButton(getContent, 164, 32); Fonts[i] = new Font(getContent); } }
public Menu(ContentManager getContent, Rectangle getScreenSize) { Content = getContent; ScreenSize = getScreenSize; Title = new Font(getContent); MenuBackgroundImage = new BasicSprite(getContent, "graphics/menubackground", ScreenSize.Width, ScreenSize.Height); for (int i = 0; i < 3; i++) { Buttons[i] = new MenuButton(Content, 164, 32); } }
public GameOver(ContentManager getContent, Rectangle getScreenSize) { ScreenSize = getScreenSize; Background = new BasicSprite(getContent, "graphics/gameoverbackground", 700, 700); Title = new Font(getContent); for (int i = 0; i < buttons.Length; i++) { buttons[i] = new MenuButton(getContent, 128, 32); } }
public Bullet(ContentManager getContent, EBulletType getBulletType, string getTexture, int getWidth, int getHeight) { Content = getContent; sprite = new BasicSprite(getContent, getTexture, getWidth, getHeight); 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) { Sprite = new BasicSprite(getContent, getTexture, getWidth, getHeight); 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) { SpriteType = ESpriteType.BASIC; Sprite = new BasicSprite(getContent, getTexture, getWidth, getHeight); }
public Lives(ContentManager getContent) { Sprite = new BasicSprite(getContent, "graphics/life", 24, 24); }