Skip to content

LordKaT/tcodWindowManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tcodWindowManager

simple window manager for libtcod written in Python 3

this code assumes a screen width/height of 160x90 tiles. You'll have to modify it to fit your needs, unless I get around to making it more portable :)

How to use:

window_manager = WindowManager()

# you can also create this without assigning a local variable

main_window = window_manager.create_window(MainWindow(window_manager))
debug_window = window_manager.create_window(DebugWindow(window_manager))

# In game loop:
window_manager.render(console)

#In input loop:
if isinstance(event, tcod.event.KeyDown):
  window_manager.input(event)

About

simple window manager for libtcod written in Python 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages