stuff renders now, but we still got no alpha channel on the foreground console.... 🤦
This commit is contained in:
parent
c17cef8bfe
commit
64e4e4f437
4 changed files with 21 additions and 8 deletions
9
main.py
9
main.py
|
|
@ -18,10 +18,11 @@ def main() -> None:
|
|||
|
||||
#tcod.tileset.procedural_block_elements(tileset=tileset)
|
||||
g.screens = [MainMenu()]
|
||||
g.console = tcod.console.Console(80, 35)
|
||||
g.background = tcod.console.Console(80, 35)
|
||||
g.foreground = tcod.console.Console(80, 35)
|
||||
g.sdl_window = tcod.sdl.video.new_window(
|
||||
g.console.width * g.tileset.tile_width,
|
||||
g.console.height * g.tileset.tile_height,
|
||||
g.background.width * g.tileset.tile_width,
|
||||
g.background.height * g.tileset.tile_height,
|
||||
flags=tcod.lib.SDL_WINDOW_RESIZABLE,
|
||||
)
|
||||
|
||||
|
|
@ -30,7 +31,7 @@ def main() -> None:
|
|||
|
||||
g.console_render = tcod.render.SDLConsoleRender(atlas=g.atlas)
|
||||
|
||||
with tcod.context.new(console=g.console, tileset=g.tileset) as g.context:
|
||||
with tcod.context.new(console=g.background, tileset=g.tileset) as g.context:
|
||||
game.screens.main_loop()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue