Beispiel #1
0
        public void Shoot()
        {
            if (!IsDying() && (_shot == null))
            {
                SystemMain.SoundShootInstance.Volume = 1.0f;
                SystemMain.SoundShootInstance.Play();
                _currentSprites = _shootSprites;
                frameCount = _currentSprites.Count;
                currentFrame = 0;

                _shot = new ShooterProjectile(_xPosition + Width/2*1 - 5, _yPosition - 7, 10, 10, 0, 15, Color.White);
            }
        }
Beispiel #2
0
 public void KillProjectile()
 {
     _shot = null;
 }