refactored state -> screen
This commit is contained in:
parent
2560a4dcd9
commit
bfabba3d82
7 changed files with 130 additions and 129 deletions
4
g.py
4
g.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue