create constants from world.odin
This commit is contained in:
@@ -44,3 +44,8 @@ ICE_SLOW_FACTOR :: 0.5
|
||||
|
||||
ENEMY_LABEL_COLOR :: rl.Color{255, 200, 200, 255}
|
||||
|
||||
// starting values for the game
|
||||
STARTING_BASE_HEALTH :: 20
|
||||
STARTING_PHASE = .Build
|
||||
STARTING_GOLD :: 100
|
||||
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@ World :: struct {
|
||||
|
||||
init_world :: proc() -> World {
|
||||
world := World {
|
||||
gold = 100,
|
||||
base_health = 20,
|
||||
gold = STARTING_GOLD,
|
||||
base_health = STARTING_BASE_HEALTH,
|
||||
phase = .Build,
|
||||
selected_tower = .Archer,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user