refactor base health

This commit is contained in:
2026-06-27 00:38:22 -07:00
parent 28165ed399
commit e7806dcd66
4 changed files with 13 additions and 5 deletions
+10 -2
View File
@@ -3,7 +3,7 @@ package game
World :: struct {
economy: Economy,
combat: Combat,
base_health: int,
player: Player,
world_map: Map,
events: [dynamic]Event,
phase: Game_Phase,
@@ -11,6 +11,10 @@ World :: struct {
selected_tower: Tower_Kind,
}
Player :: struct {
base_health: int,
}
Map :: struct {
current_map: World_Map,
path: [dynamic]Vec2,
@@ -35,9 +39,13 @@ init_world :: proc() -> World {
economy := Economy {
gold = 100,
}
player := Player {
base_health = 20,
}
world := World {
economy = economy,
base_health = 20,
player = player,
phase = .Build,
selected_tower = .Archer,
}