renderer implemented

This commit is contained in:
staubsauger 2024-08-19 09:47:10 +02:00
parent 19879317c1
commit 91b4711ee9
3 changed files with 34 additions and 4 deletions

18
g.py
View file

@ -5,6 +5,9 @@ from __future__ import annotations
import tcod.console
import tcod.context
import tcod.ecs
import tcod.tileset
import tcod.sdl.render
import tcod.render
from game.screens import Screen
from game.components import Position
@ -20,3 +23,18 @@ screens: list[Screen] = []
console: tcod.console.Console
"""The current main console."""
tileset: tcod.tileset.Tileset
"""The tileset to use"""
sdl_window: tcod.sdl.video.Window
"""The SDL window"""
sdl_renderer: tcod.sdl.render.Renderer
"""The SDL renderer"""
atlas: tcod.render.SDLTilesetAtlas
"""The tileset atlas"""
console_reder: tcod.render.SDLConsoleRender
"""The console renderer"""