public override void Initialize(ContentManager content, Vector2 position, Loot theLoot, Wave theWave) { parachuteRip = (content.Load<SoundEffect>("Music\\Rip.wav")).CreateInstance(); FlyingTexture = content.Load<Texture2D>("Graphics\\ParachuteEnemy"); /* EnemyDeathTexture = content.Load<Texture2D>("Graphics\\Enemy1Dead"); FiringTexture = content.Load<Texture2D>("Graphics\\Enemy1Firing"); EnemyTextureMap = new AnimatedSprite(content.Load<Texture2D>("Graphics\\Enemy1Map"), numMapRows, numMapColumns, animationSpeed); speed = E1Speed; base.Initialize(content, position, theLoot, theWave); * */ base.Initialize(content, position, theLoot, theWave); if (inSky) { if (position.X < 0) { speed *= 2; Position = new Vector2(100, -75); } else { speed *= 2; Position = new Vector2(650, -75); } } }
public override void Initialize(ContentManager content, Vector2 position, Loot theLoot, Wave theWave) { EnemyDeathTexture = content.Load<Texture2D>("Graphics\\Enemy1Dead"); FiringTexture = content.Load<Texture2D>("Graphics\\Enemy1Firing"); EnemyTextureMap = new AnimatedSprite(content.Load<Texture2D>("Graphics\\Enemy1Map"), numMapRows, numMapColumns, animationSpeed); speed = E1Speed; regions = enemyRegions; damages = enemyDamages; sounds = enemySounds; health = enemyHealth; base.Initialize(content, position, theLoot, theWave); }
public override void Initialize(ContentManager content, Vector2 position, Loot theLoot, Wave theWave) { dogBiteSound = (content.Load<SoundEffect>("Music\\DogBite.wav")).CreateInstance(); EnemyDeathTexture = content.Load<Texture2D>("Graphics\\DogDead"); FiringTexture = content.Load<Texture2D>("Graphics\\DogBite"); EnemyTextureMap = new AnimatedSprite(content.Load<Texture2D>("Graphics\\DogMap"), numMapRows, numMapColumns, animationSpeed); speed = E1Speed; regions = enemyRegions; damages = enemyDamages; sounds = enemySounds; health = enemyHealth; base.Initialize(content, position, theLoot, theWave); firingAnimationRate = firinganimationRate; isLooted = true; //Dogs can't be looted Position.Y += heightOffset; }
public virtual void Initialize(ContentManager content, Vector2 position, Loot theLoot, Wave theWave) { Position = position; Alive = true; isFiring = false; firingAnimationRate = firinganimationrate; beginFiringTime = 0; loot = new List<Loot>(); loot.Add(theLoot); isLooted = false; toShoot = Vector2.Zero; wave = theWave; }
public override void Initialize(ContentManager content, Vector2 position, Loot theLoot, Wave theWave) { base.Initialize(content, position, theLoot, theWave); Alive = false; Position = new Vector2(position.X/2, position.Y); }