public Game() { //TCODConsole.setCustomFont("terminal12x12_gs_ro.png", (int)TCODFontFlags.LayoutAsciiInRow); TCODSystem.forceFullscreenResolution(1680, 1050); TCODConsole.initRoot(WINDOW_WIDTH, WINDOW_HEIGHT, "ShootyShooty RL", false, TCODRendererType.GLSL); TCODSystem.setFps(60); //TCODConsole.setFullscreen(true); root = TCODConsole.root; main = new TCODConsole(WINDOW_WIDTH, MAIN_HEIGHT); status = new TCODConsole((int)(WINDOW_WIDTH * STATUS_TO_MESSAGES_RATIO), STATUS_HEIGHT); //statsPanel = new Panel((int)(WINDOW_HEIGHT * MAIN_TO_STATUS_RATIO), 0, WINDOW_WIDTH, STATUS_HEIGHT, ref status); dialog = new TCODConsole(WINDOW_WIDTH, DIALOG_HEIGHT); //dialogPanel = new Panel(0, 0, WINDOW_WIDTH, DIALOG_HEIGHT, ref dialog); messages = new TCODConsole((int)Math.Ceiling(WINDOW_WIDTH * (1.0f - STATUS_TO_MESSAGES_RATIO)), STATUS_HEIGHT); effects = new TCODConsole(WINDOW_WIDTH, MAIN_HEIGHT); emit.Init(TCODColor.orange, 20); Out = new MessageHandler(); endGame = false; }
public virtual bool Init(TCODColor fore, MessageHandler messageHandler) { if (initialized) return false; ForeColor = fore; _messageHandler = messageHandler; _visible = true; initialized = true; return true; }