Commit Graph

30 Commits

Author SHA1 Message Date
f3df13ec25 New visibility system. 2021-09-28 12:49:44 -05:00
425c041613 Remove VisibleTiles in favor of looking up directly on the viewshed. 2021-09-27 13:46:11 -05:00
8224d85b4b Fix more visibility bugs, and make opaque public. 2021-09-23 12:58:39 -05:00
52e314ce1c Draw visibility collider lines through coordinate centers to hopefully address seeing through walls. 2021-09-22 08:36:38 -05:00
a59f8a22a1 Use Visible component with opacity to indicate that something should appear visually. 2021-09-22 08:23:01 -05:00
4e9fcef178 More collider-based visibility work. 2021-09-21 12:58:57 -05:00
42912e59a8 Refactor visibility to be collider and event-based. 2021-09-21 06:38:51 -05:00
10fc85d384 Simplify visibility calculation. 2021-09-16 14:27:08 -05:00
f16333d258 Fix out-of-bounds error. 2021-09-01 11:34:38 -05:00
d33f26d31c Visibility system cleanup. 2021-08-23 10:14:03 -05:00
25d0664f49 Visibility blocking takes an opacity. 2021-08-11 10:44:45 -05:00
dd84266039 Expose to allow hooking into visibility-like calculations more easily. 2021-08-03 11:24:08 -05:00
62ed38c952 Minor argument cleanup. 2021-07-29 19:37:02 -05:00
12b7ecd2ea If an entity has coordinates and a collider hits a space that isn't equal to the coordinates, mark it as visible.
Yes this is an ugly hack, but it works for now.
2021-07-21 15:27:38 -05:00
fc9e561be7 Appease Clippy. 2021-07-13 12:26:51 -05:00
822e60e722 Fix visibility logging. 2021-06-16 13:09:21 -05:00
98bca77f66 More tweaks to pathfinding and visibility. 2021-06-16 11:28:06 -05:00
a461b0907f Update shape size/position for calculating visibility. 2021-06-10 09:31:48 -05:00
24db52abd9 Refine visibility algorithm. 2021-06-09 17:42:04 -05:00
2635dcbb9c Use mapgen::Map directly. 2021-06-09 14:53:48 -05:00
173630edab Refactor visibility to use physics system. 2021-06-09 14:13:09 -05:00
6eabdf52ab Bring collision monitoring in line with visibility blocking. 2021-06-01 12:35:14 -05:00
e28f21c351 Remove entity from old index before recalculating collision/visibility of tile. 2021-06-01 12:14:27 -05:00
3084d02f66 Separate viewshed updates based on coordinate and visibility_blocked. 2021-05-26 14:57:55 -05:00
41bfe08a03 Refactor indexing into individual setter functions. 2021-05-24 10:19:01 -05:00
1878ead9be Simplify visibility systems. 2021-05-21 12:04:10 -05:00
7719bb08b3 Add component to not log something when it appears. 2021-05-17 09:50:03 -05:00
b2138d3e4c Describe directions relatively. 2021-05-16 17:24:26 -05:00
9b124e5640 Put direction before distance. 2021-05-16 16:50:20 -05:00
3332d0a88d Initial commit. 2021-05-13 12:25:45 -05:00