Light works with multiple sources and strengths, walls are faked out but I think I may keep that to make it easier to play.

This commit is contained in:
Zed A. Shaw 2024-11-27 04:02:57 -05:00
parent 6174df5ec7
commit 0e8a2e520a
5 changed files with 55 additions and 14 deletions

View file

@ -22,6 +22,10 @@ bool spatial_map::occupied(Point at) const {
return table.contains(at);
}
Entity spatial_map::get(Point at) const {
return table.at(at);
}
/*
* Avoid doing work by using the dy,dx and confirming that
* at.x or at.y is > 0. If either is 0 then there can't be