refactor base health
This commit is contained in:
+10
-2
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user