Example #1
0
 protected override void PrepareMajor()
 {
     Color color = Color.FromArgb(rand.Next(255), rand.Next(255), rand.Next(255));
     Font font = new Font(FontFamily.GenericSansSerif, rand.Next(25, 30));
     GameObject obj = new MovableStyle1Object(100.0f, 100.0f, 0.5f, me, "Me", color, font);
     obj.Tag = TAG_SENTENCE;
     obj.SpeedX = rand.Next(50, 100) / 200.0f;
     obj.SpeedY = rand.Next(50, 100) / 200.0f;
     objects.Add(obj);
     for (int i = 0; i < MAX_RAINDROPS; i++)
     {
         PutRaindrop(false);
     }
     StartTimer();
 }
Example #2
0
        protected override void PrepareMajor()
        {
            Color      color = Color.FromArgb(rand.Next(255), rand.Next(255), rand.Next(255));
            Font       font  = new Font(FontFamily.GenericSansSerif, rand.Next(25, 30));
            GameObject obj   = new MovableStyle1Object(100.0f, 100.0f, 0.5f, me, "Me", color, font);

            obj.Tag    = TAG_SENTENCE;
            obj.SpeedX = rand.Next(50, 100) / 200.0f;
            obj.SpeedY = rand.Next(50, 100) / 200.0f;
            objects.Add(obj);
            for (int i = 0; i < MAX_RAINDROPS; i++)
            {
                PutRaindrop(false);
            }
            StartTimer();
        }