shoot projectiles

This commit is contained in:
2026-06-13 23:33:03 -07:00
parent 5f3ef33b05
commit b9235246c7
6 changed files with 123 additions and 26 deletions
+12
View File
@@ -3,6 +3,8 @@ package game
Game_Phase :: enum {
Build,
Combat,
Game_Over,
Victory,
}
Wave_Spawner :: struct {
@@ -49,3 +51,13 @@ update_phase :: proc(world: ^World) {
}
}
check_end :: proc(world: ^World) {
if world.base_health <= 0 {
world.phase = .Game_Over
}
if world.wave >= MAX_WAVES && world.phase == .Build && wave_clear(world) {
world.phase = .Victory
}
}