commands, towers, etc

This commit is contained in:
2026-06-10 02:32:01 -07:00
parent 2e09dbe65d
commit 114c298219
5 changed files with 65 additions and 4 deletions
+3 -3
View File
@@ -8,6 +8,7 @@ World :: struct {
world_map: Map,
path: [dynamic]Vec2,
enemies: [MAX_ENEMIES]Enemy,
towers: [dynamic]Tower,
}
init_world :: proc() -> World {
@@ -22,9 +23,8 @@ init_world :: proc() -> World {
// update world, never draw
update_world :: proc(world: ^World, dt: f32) {
if rl.IsKeyPressed(.G) {
world.gold += 10
}
cmd := gather_commands(world)
execute_command(world, cmd)
if rl.IsKeyPressed(.SPACE) {
spawn_group(world, 3)