14 lines
235 B
Odin
14 lines
235 B
Odin
package game
|
|
|
|
build_path :: proc(world_map: ^World_Map, path: ^[dynamic]Vec2) {
|
|
clear(path)
|
|
for y in 0 ..< MAP_H {
|
|
for x in 0 ..< MAP_W {
|
|
if world_map.tiles[y][x] == .Path {
|
|
append(path, grid_to_center(x, y))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|