Example #1
0
 public ConsoleView()
 {
     RConsole.InitializeRootConsole((int)(1920d / 8 / 2), (int)(1080d / 8 / 2));
     TCODSystem.setFps(30);
     RConsole.RootConsole.SetBackgroundColour(TCODColor.black);
     RConsole.RootConsole.SetForegroundColour(TCODColor.white);
 }
Example #2
0
 public MenuDrawer()
 {
     _menuConsole = new RConsole(RConsole.RootConsole.Width, RConsole.RootConsole.Height);
     _menuConsole.SetBackgroundColour(TCODColor.black);
     _menuConsole.SetForegroundColour(TCODColor.white);
     _heatZone = new Rectangle();
 }
 protected CharBattleFrame()
 {
     _position   = new Point();
     CharConsole = new RConsole(16, 10);
     _root       = RConsole.RootConsole;
     DrawStatics();
 }
        private static void DrawBorders()
        {
            var enemyBorder = new RConsole(74, 24);
            var redControl  = enemyBorder.GetColorControlString(TCODColor.red);
            var stopControl = enemyBorder.GetStopControl();

            enemyBorder.DrawBorder();
            enemyBorder.PrintString(1, 1, string.Format("{0}Enemy Party{1}", redControl, stopControl));

            var root = RConsole.RootConsole;

            root.Blit(enemyBorder, enemyBorder.Bounds, 3, 3);

            var playerBorder = new RConsole(74, 24);

            playerBorder.DrawBorder();
            playerBorder.PrintString(1, 22, string.Format("{0}Player Party{1}", redControl, stopControl));
            root.Blit(playerBorder, playerBorder.Bounds, 3, 28);
        }
Example #5
0
 public void Show()
 {
     RConsole.RootConsole.Clear();
     RunCurrentState();
     RConsole.Draw();
 }
Example #6
0
 public static void InitializeRootConsole(int width, int height)
 {
     TCODConsole.initRoot(width, height, "ProjectR", false, TCODRendererType.GLSL);
     RootConsole = new RConsole(TCODConsole.root);
 }