private void AddShieldPowerUp() { //todo would like to combine all powerups somehow PowerUp shieldPowerUp = new PowerUp(); Vector2 position = new Vector2(ScreenManager.GraphicsDevice.Viewport.Width + powerupShieldTexture.Width / 2, random.Next(100, ScreenManager.GraphicsDevice.Viewport.Height - 75)); shieldPowerUp.Initialize(ScreenManager.GraphicsDevice.Viewport, powerupShieldTexture, position, "ShieldPowerUp", player); shieldPowerUps.Add(shieldPowerUp); }
private void AddDamagePowerUp() { //todo PowerUp damagePowerUp = new PowerUp(); Vector2 position = new Vector2(ScreenManager.GraphicsDevice.Viewport.Width + powerupDamageTexture.Width / 2, random.Next(100, ScreenManager.GraphicsDevice.Viewport.Height - 75)); damagePowerUp.Initialize(ScreenManager.GraphicsDevice.Viewport, powerupDamageTexture, position, "DamagePowerUp", player); damagePowerUps.Add(damagePowerUp); }