Circle adjusted to work better but now I think hirdrac was right that it's easier to just calculate a distance from center and use that to determine light levels rather than a whole dpath.

This commit is contained in:
Zed A. Shaw 2024-12-25 06:03:11 -05:00
parent 8a94108874
commit 9ac8da30ea
7 changed files with 23 additions and 22 deletions

View file

@ -144,7 +144,7 @@ void System::collision(DinkyECS::World &world, Player &player) {
world.send<Events::GUI>(Events::GUI::LOOT, entity, loot);
inventory.gold += loot.amount;
light.strength = 4;
light.distance = 2;
light.radius = 2.3;
collider.remove(loot_pos.location);
} else {
println("UNKNOWN COLLISION TYPE {}", entity);