make enemy move

This commit is contained in:
2026-06-10 02:32:01 -07:00
parent d7ac123359
commit 85f6a286ac
5 changed files with 54 additions and 7 deletions
+2 -2
View File
@@ -22,8 +22,6 @@ init_world :: proc() -> World {
// update world, never draw
update_world :: proc(world: ^World, dt: f32) {
_ = dt
if rl.IsKeyPressed(.G) {
world.gold += 10
}
@@ -31,5 +29,7 @@ update_world :: proc(world: ^World, dt: f32) {
if rl.IsKeyPressed(.SPACE) {
spawn_enemy(world)
}
update_enemy(world, dt)
}