Beispiel #1
0
        public void generateConfettiDrop(int numDrops)
        {
            for (int i = 0; i < numDrops; i++)
            {
                confettiDrop = new ConfettiDrop(game, new Vector2(random.Next(50, TankGame.FIELD_WIDTH - 50), random.Next(200, 300)));
                confettiDrop.AutoInitialize(game.GraphicsDevice, game.Content, TankGame.spriteBatch);

                confettiDrop.UpdateOrder = 100;
                confettiDrop.DrawOrder   = 100;
                confettiDrop.Visible     = true;
            }
        }
Beispiel #2
0
        public void generateConfettiDrop(int numDrops)
        {
            for (int i = 0; i < numDrops; i++)
            {
                confettiDrop = new ConfettiDrop(game, new Vector2(random.Next(50, TankGame.FIELD_WIDTH - 50), random.Next(200, 300)));
                confettiDrop.AutoInitialize(game.GraphicsDevice, game.Content, TankGame.spriteBatch);

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