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:
parent
6174df5ec7
commit
0e8a2e520a
5 changed files with 55 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue