コード例 #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;
            }
        }
コード例 #2
0
ファイル: GameOverScreen.cs プロジェクト: Stran6/TankGame
        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;
            }
        }