Lighting now works, now to get multiple lights.

This commit is contained in:
Zed A. Shaw 2024-11-26 05:03:49 -05:00
parent 4ceacecfda
commit 6174df5ec7
4 changed files with 36 additions and 13 deletions

View file

@ -33,7 +33,7 @@ void configure_world(DinkyECS::World &world, Map &game_map) {
world.set<Combat>(player.entity, {100, 10});
world.set<Tile>(player.entity, {config.PLAYER_TILE});
world.set<Inventory>(player.entity, {5});
world.set<LightSource>(player.entity, {200});
world.set<LightSource>(player.entity, {150});
auto enemy = world.entity();
world.set<Position>(enemy, {game_map.place_entity(1)});