Ejemplo n.º 1
0
        public override void bulletCollided()
        {
            if (!outOfBounds)
            {
                if (explosion == null)
                {
                    explosion = new FlamePillar((TankGame)Game, new Vector2(position.X + (speed.X * 6), position.Y + (speed.Y * 6)));
                    explosion.AutoInitialize(Game.GraphicsDevice, Game.Content, TankGame.spriteBatch);

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

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

            exploded = true;
        }
Ejemplo n.º 2
0
        public override void bulletCollided()
        {
            if (!outOfBounds)
            {
                if (explosion == null)
                {
                    explosion = new FlamePillar((TankGame)Game, new Vector2(position.X + (speed.X * 6), position.Y + (speed.Y * 6)));
                    explosion.AutoInitialize(Game.GraphicsDevice, Game.Content, TankGame.spriteBatch);

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

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

            exploded = true;
        }