refactored state -> screen

This commit is contained in:
Lukas Nöllemeyer 2024-08-17 10:56:55 +02:00
parent 2560a4dcd9
commit bfabba3d82
7 changed files with 130 additions and 129 deletions

4
g.py
View file

@ -6,7 +6,7 @@ import tcod.console
import tcod.context
import tcod.ecs
import game.state
from game.screens import Screen
from game.components import Position
context: tcod.context.Context
@ -20,7 +20,7 @@ world_map: tcod.map.Map
world_center: tuple[int,int] = Position(50, 50)
states: list[game.state.State] = []
screens: list[Screen] = []
"""A stack of states with the last item being the active state."""
console: tcod.console.Console