示例#1
0
        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);
                }
            }
        }
示例#2
0
 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);
 }
示例#3
0
 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;
 }
示例#4
0
 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;
 }
示例#5
0
 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);
 }