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:
Zed A. Shaw 2025-02-23 02:13:14 -05:00
parent fa6311f10c
commit b7f49aa719
9 changed files with 84 additions and 28 deletions

View file

@ -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);