Example #1
0
        public void explode()
        {
            tanksplosion = new Tanksplosion(game, new Vector2(tankPosition.X + tankRect.Width / 2,
                                                              tankPosition.Y + tankRect.Height / 2));
            tanksplosion.AutoInitialize(game.GraphicsDevice, game.Content, TankGame.spriteBatch);

            tanksplosion.UpdateOrder = 100;
            tanksplosion.DrawOrder   = 100;
            tanksplosion.Visible     = true;
        }
Example #2
0
        public void explode()
        {
            tanksplosion = new Tanksplosion(game, new Vector2(tankPosition.X + tankRect.Width / 2,
                tankPosition.Y + tankRect.Height / 2));
            tanksplosion.AutoInitialize(game.GraphicsDevice, game.Content, TankGame.spriteBatch);

            tanksplosion.UpdateOrder = 100;
            tanksplosion.DrawOrder = 100;
            tanksplosion.Visible = true;
        }