示例#1
0
 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()
示例#2
0
 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()
示例#3
0
    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)
示例#4
0
    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)
示例#5
0
def test_credits_long(console):
    libtcodpy.console_credits()
示例#6
0
def test_credits_long(console):
    libtcodpy.console_credits()