def init_root(self, width=80, height=26, show_credits=False): self.root = tdl.init(width, height) self.canvas = tdl.Console(width, height) self.temp_console = tdl.Console(width, height) self.width, self.height = width, height tdl.set_fps(30) if show_credits: tcod.console_credits()
def init_root(self, width=80, height=26, show_credits=False): self.root = tdl.init(width, height) self.scratch = tdl.Console(width, height) self.temp_console = tdl.Console(width, height) self.width, self.height = width, height tdl.set_fps(30) if show_credits: tcod.console_credits()
def init_root(self, show_credits=False): RootConsole.active_root = self RootConsole.scratch = Console(self.width, self.height) RootConsole.temp_console = Console(self.width, self.height) tcod.console_init_root(self.width, self.height, self.title, self.fullscreen, self.renderer) if show_credits: tcod.console_credits() tcod.sys_set_fps(self.max_fps)
def init_root(self, show_credits=False): RootConsole.active_root = self RootConsole.scratch = Console(self.width, self.height) RootConsole.temp_console = Console(self.width, self.height) tcod.console_init_root(self.width, self.height, self.title, self.fullscreen) if show_credits: tcod.console_credits() tcod.sys_set_fps(self.max_fps)
def test_credits_long(console): libtcodpy.console_credits()