add event queue, tower archetypes, and enemy damage. no projectiles yet

This commit is contained in:
2026-06-11 01:05:17 -07:00
parent dd6a5684be
commit 285b434499
4 changed files with 95 additions and 4 deletions
+3
View File
@@ -9,6 +9,7 @@ World :: struct {
path: [dynamic]Vec2,
enemies: [MAX_ENEMIES]Enemy,
towers: [dynamic]Tower,
events: [dynamic]Event,
}
init_world :: proc() -> World {
@@ -27,5 +28,7 @@ update_world :: proc(world: ^World, dt: f32) {
execute_command(world, cmd)
update_enemies(world, dt)
update_towers(world, dt)
process_events(world)
}