Now have a mostly working inventory UI and can pickup items and see them. Next up, being able to use things by clicking on them.
This commit is contained in:
parent
fa6311f10c
commit
b7f49aa719
9 changed files with 84 additions and 28 deletions
|
@ -42,7 +42,9 @@ size_t LevelManager::create_level(shared_ptr<DinkyECS::World> prev_world) {
|
|||
// not sure if this is still needed
|
||||
System::init_positions(*world, *collider);
|
||||
|
||||
$levels.emplace_back(index, map, world,
|
||||
auto player = world->get_the<Player>();
|
||||
|
||||
$levels.emplace_back(index, player.entity, map, world,
|
||||
make_shared<LightRender>(map->width(), map->height()),
|
||||
collider);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue