Example #1
0
 protected override void PopSentence(string sentence)
 {
     ISurface surface = App.GetInstance().Surface;
     float x = -150.0f;
     float y = surface.ScreenHeight / 2.0f - 150.0f;
     Color color = Color.FromArgb(rand.Next(10, 255), 0, rand.Next(10, 255));
     Font font = App.GetInstance().InternalFont.getFont(0, rand.Next(35, 40));
     Image angel = girlPhotos[rand.Next(girlPhotos.Count)];
     GameObject obj = new MovableStyle3Object(x, y, 1.0f, angel, sentence, color, font);
     obj.Tag = TAG_SENTENCE;
     obj.SpeedX = 0.4f;
     objects.Add(obj);
 }
Example #2
0
        protected override void PopSentence(string sentence)
        {
            ISurface   surface = App.GetInstance().Surface;
            float      x       = -150.0f;
            float      y       = surface.ScreenHeight / 2.0f - 150.0f;
            Color      color   = Color.FromArgb(rand.Next(10, 255), 0, rand.Next(10, 255));
            Font       font    = App.GetInstance().InternalFont.getFont(0, rand.Next(35, 40));
            Image      angel   = girlPhotos[rand.Next(girlPhotos.Count)];
            GameObject obj     = new MovableStyle3Object(x, y, 1.0f, angel, sentence, color, font);

            obj.Tag    = TAG_SENTENCE;
            obj.SpeedX = 0.4f;
            objects.Add(obj);
        }