Mostly working spatical map with 2 level collision/space structure. Not the best implementation but this is the idea.
This commit is contained in:
parent
fd53f92fe6
commit
d6326c9e41
7 changed files with 60 additions and 31 deletions
|
@ -85,7 +85,7 @@ DinkyECS::Entity LevelManager::spawn_enemy(std::string named) {
|
|||
}
|
||||
}
|
||||
|
||||
level.collision->insert(entity_pos.location, entity_id);
|
||||
level.collision->insert(entity_pos.location, entity_id, true);
|
||||
|
||||
return entity_id;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue