refactors image loading into fully-fledged prefab builder
This commit is contained in:
parent
fc59880b80
commit
ea79d4064f
7 changed files with 181 additions and 70 deletions
|
|
@ -121,7 +121,7 @@ pub fn spawn_region(ecs: &mut World, area: &[usize], map_depth: i32) {
|
|||
}
|
||||
}
|
||||
|
||||
fn spawn_entity(ecs: &mut World, spawn: &(&usize, &String)) {
|
||||
pub fn spawn_entity(ecs: &mut World, spawn: &(&usize, &String)) {
|
||||
let x = (*spawn.0 % MAPWIDTH) as i32;
|
||||
let y = (*spawn.0 / MAPWIDTH) as i32;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue