コード例 #1
0
ファイル: ShooterShip.cs プロジェクト: eloreyen/XNAGames
        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);
            }
        }
コード例 #2
0
ファイル: ShooterShip.cs プロジェクト: eloreyen/XNAGames
 public void KillProjectile()
 {
     _shot = null;
 }