fixed typo and made window closable
This commit is contained in:
parent
91b4711ee9
commit
533a74c4fa
3 changed files with 5 additions and 4 deletions
2
main.py
2
main.py
|
|
@ -28,7 +28,7 @@ def main() -> None:
|
|||
g.sdl_renderer = tcod.sdl.render.new_renderer(g.sdl_window, target_textures=True)
|
||||
g.atlas = tcod.render.SDLTilesetAtlas(g.sdl_renderer, g.tileset)
|
||||
|
||||
g.console_reder = tcod.render.SDLConsoleRender(atlas=g.atlas)
|
||||
g.console_render = tcod.render.SDLConsoleRender(atlas=g.atlas)
|
||||
|
||||
with tcod.context.new(console=g.console, tileset=g.tileset) as g.context:
|
||||
game.screens.main_loop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue