Ejemplo n.º 1
0
        public override void Draw(GameTime gameTime)
        {
            const int ident = 5;
            int       DY    = 0;

            if (Death.Height < TQMG.ScrHeight)
            {
                DY = TQMG.ScrHeight - Death.Height;
            }
            TQMG.Color(0, 18, 25);
            TQMG.SetAlpha(255);
            TQMG.DrawRectangle(0, 0, TQMG.ScrWidth, TQMG.ScrHeight);
            TQMG.Color(0, 36, 50);
            Death.Draw(0, DY);
            TQMG.Color(255, 180, 100);
            SysFont.DrawText("OOPS!", ident, 0);
            TQMG.Color(255, 255, 0);
            SysFont.DrawText("You tried something we didn't think of!", 50, 25);
            TQMG.Color(0, 180, 255);
            SysFont.DrawText(sct, ident, 75);
            TQMG.Color(0, 200, 255);
            SysFont.DrawText(smsg, ident, 125);
            TQMG.Color(0, 220, 255);
            SysFont.DrawText(strace, ident, 250);
            TQMG.Color(0, 255, 255);
            SysFont.DrawText("Hit Escape to exit this application", 50, TQMG.ScrHeight - 30);
        }
Ejemplo n.º 2
0
 public override void Draw(GameTime gameTime)
 {
     TQMG.Color(255, 255, 255);
     if (BackGround != null)
     {
         TQMG.Tile(BackGround, 0, 0, 0, 0, TQMG.ScrWidth, TQMG.ScrHeight);
     }
     try {
         var y = ScrollUp - StartY;
         foreach (BCLine l in Line)
         {
             if (y > -30)
             {
                 //SysFont.DrawText(l.txt, 2, y);
                 l.Show(2, y);
             }
             y += 22;
         }
         TQMG.Color(255, 180, 0);
         SysFont.DrawText($">{TypingCommand}_", 2, y);
     } catch (Exception error) {
         Debug.WriteLine($"Exception during the debug log rendering!\n{error.Message}\nTraceback:\n{error.StackTrace}\n\n");
     }
 }
Ejemplo n.º 3
0
 public void DrawText(string t, int x, int y) => SysFont.DrawText(t, x, y);
Ejemplo n.º 4
0
 public void Show(int x, int y)
 {
     TQMG.Color(r, g, b);
     SysFont.DrawText(txt, x, y);
 }