Lighting now works, now to get multiple lights.
This commit is contained in:
parent
4ceacecfda
commit
6174df5ec7
4 changed files with 36 additions and 13 deletions
2
main.cpp
2
main.cpp
|
@ -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)});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue