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
+1 -4
View File
@@ -5,10 +5,7 @@ build_path :: proc(world_map: ^Map, path: ^[dynamic]Vec2) {
for y in 0 ..< MAP_H {
for x in 0 ..< MAP_W {
if world_map.tiles[y][x] == .Path {
append(
path,
Vec2{f32(x * TILE_SIZE + TILE_SIZE / 2), f32(y * TILE_SIZE + TILE_SIZE / 2)},
)
append(path, grid_to_center(x, y))
}
}
}