示例#1
0
 public static void BallDemo(TomatoMainEngine engine)
 {
     SoundPool.PlayBackgroundMusic("Bricks");
     Random r = new Random();
     for ( int i = 0; i < 2; i++ )
     {
         var a = new ParticleBallDemo.FlammingBall();
         a.SetPos(r.Next(-10, 10), r.Next(-10, 10));
         a.SetRotation((float)r.Next(100) / 50);
         TomatoMainEngine.AddGameObject(a);
     }
 }
示例#2
0
        public static void BallDemo(TomatoMainEngine engine)
        {
            SoundPool.PlayBackgroundMusic("Bricks");
            Random r = new Random();

            for (int i = 0; i < 2; i++)
            {
                var a = new ParticleBallDemo.FlammingBall();
                a.SetPos(r.Next(-10, 10), r.Next(-10, 10));
                a.SetRotation((float)r.Next(100) / 50);
                TomatoMainEngine.AddGameObject(a);
            }
        }