Initial level management works and can go down levels but need to rework the ecs a bit to have the concept of 'constant' information and make copying it easy.
This commit is contained in:
parent
58fae858ff
commit
2735a0ac1f
3 changed files with 14 additions and 6 deletions
|
@ -39,7 +39,6 @@ size_t LevelManager::create_level(shared_ptr<DinkyECS::World> prev_world) {
|
|||
|
||||
auto& tile = prev_world->get<Tile>(player.entity);
|
||||
|
||||
fmt::println("player tile is: {}", tile.chr);
|
||||
world->set<Tile>(player.entity, tile);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue