Fog of War now works fairly normally, but I think I'll have to do something so people don't live in the map. Probably something like hearing distance is increased because you're louder with a map out, and you can't see enemies on the map.
This commit is contained in:
parent
2997dc363b
commit
6f91533950
6 changed files with 19 additions and 11 deletions
|
@ -33,8 +33,7 @@ namespace lighting {
|
|||
int light_level(int level, float distance, size_t x, size_t y);
|
||||
void render_light(LightSource source, Point at);
|
||||
void render_square_light(LightSource source, Point at, PointList &has_light);
|
||||
void render_compass_light(LightSource source, Point at, PointList &has_light);
|
||||
void render_circle_light(LightSource source, Point at, PointList &has_light);
|
||||
void update_fow(Point player_pos, LightSource source);
|
||||
Matrix &lighting() { return $lightmap; }
|
||||
Matrix &paths() { return $paths.paths(); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue