able to spawn enemy when pressing space

This commit is contained in:
2026-06-10 02:32:01 -07:00
parent 4032a5ea76
commit d7ac123359
8 changed files with 100 additions and 7 deletions
+17
View File
@@ -30,5 +30,22 @@ init_map :: proc(world_map: ^Map) {
world_map.tiles[y][x] = .Blocked
}
}
for x in 1 ..< 13 {
world_map.tiles[6][x] = .Path
}
for y in 7 ..< 8 {
world_map.tiles[y][12] = .Path
}
for y in 4 ..< 9 {
for x in 3 ..< 12 {
if world_map.tiles[y][x] != .Path {
world_map.tiles[y][x] = .Build
}
}
}
}