Esempio n. 1
0
        public override void bulletCollided()
        {
            if (!outOfBounds)
            {
                if (explosion == null)
                {
                    explosion = new Flare((TankGame)Game, new Vector2(position.X, position.Y));
                    explosion.AutoInitialize(Game.GraphicsDevice, Game.Content, TankGame.spriteBatch);

                    explosion.UpdateOrder = 100;
                    explosion.DrawOrder = 100;
                    explosion.Visible = true;

                    ((TankGame)Game).soundManager.missleDropBullet.Play();
                }
            }

            exploded = true;
        }
Esempio n. 2
0
        public override void bulletCollided()
        {
            if (!outOfBounds)
            {
                if (explosion == null)
                {
                    explosion = new Flare((TankGame)Game, new Vector2(position.X, position.Y));
                    explosion.AutoInitialize(Game.GraphicsDevice, Game.Content, TankGame.spriteBatch);

                    explosion.UpdateOrder = 100;
                    explosion.DrawOrder   = 100;
                    explosion.Visible     = true;

                    ((TankGame)Game).soundManager.missleDropBullet.Play();
                }
            }

            exploded = true;
        }