public LibtcodShell(string title, int width, int height) : base(title, width, height) { //Mouse = new Mouse(); OldMouse = new Mouse(); TCODConsole.initRoot(Width, Height, Title, false, TCODRendererType.SDL); TCODConsole.root.setBackgroundColor(TCODColor.black); TCODConsole.root.setForegroundColor(TCODColor.white); TCODConsole.root.setKeyColor(TCODColor.red); TCODConsole.root.clear(); TCODSystem.setFps(24); Screen = new LibtcodScreen(Width, Height, TCODConsole.root); TCODConsole.flush(); }
public override void Resize(int width, int height) { if ((width != Width) || (height != Height)) { Width = width; Height = height; TCODConsole.root.Dispose(); TCODConsole.initRoot(Width, Height, Title, false, TCODRendererType.SDL); Screen = new LibtcodScreen(Width, Height, TCODConsole.root); } }