make enemy move
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user