able to spawn enemy when pressing space
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user