Пример #1
0
 public Mover(ContentStore content, string texName, float defaultXPos, float defaultYPos, float inDefaultXSpeed, float inDefaultYSpeed, int spriteWidth, int spriteHeight) :
     base(content, texName, defaultXPos, defaultYPos, spriteWidth, spriteHeight)
 {
     SetSpeed(inDefaultXSpeed, inDefaultYSpeed);
     Reset();
 }
Пример #2
0
 public Bullet(ContentStore content, string texName, string gunSoundName, float defaultXPos, float defaultYPos, float inDefaultXSpeed, float inDefaultYSpeed, int spriteWidth, int spriteHeight)
     : base(content, texName, defaultXPos, defaultYPos, inDefaultXSpeed, inDefaultYSpeed, spriteWidth, spriteHeight)
 {
     mGunFire = content.GetSoundEffect(gunSoundName);
     //mIsBulletDestroyed = true;//init to destroyed
 }
Пример #3
0
 public Enemy(ContentStore content, string texName, float defaultXPos, float defaultYPos, float inDefaultXSpeed, float inDefaultYSpeed, int spriteWidth, int spriteHeight)
     : base(content, texName, defaultXPos, defaultYPos, inDefaultXSpeed, inDefaultYSpeed, spriteWidth, spriteHeight)
 {
     mIsDead = false;
 }