Commit Graph

52 Commits

Author SHA1 Message Date
38564fbebe Remove bad cache hit check.
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-25 11:22:46 -05:00
bc24308fa1 Appease Clippy and fix gnarly visibility error.
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-25 01:00:30 -05:00
cadaeceba9 Improve performance of visibility calculations.
Some checks failed
continuous-integration/drone/push Build is failing
2022-03-21 19:22:13 -05:00
f16d160994 Avoid possible crash. 2022-03-17 12:39:35 -05:00
0751cf344d Cache collision data when calculating visibility. 2022-03-17 12:15:30 -05:00
92b0a92a70 Restore timestep for visibility updates. 2022-03-17 11:30:12 -05:00
197080e5fd Trim down on unnecessary visibility updates. 2022-03-16 10:50:43 -05:00
24334ba511 Update mapgen to custom fork. 2022-03-15 10:37:28 -05:00
6d6ff3ae23 Since visibility requires physics, use RigidBodyPositionComponent rather than Coordinates for calculations. 2022-02-24 11:11:11 -06:00
7786de18e3 Lots of visibility refactoring and bugfixes. 2022-02-23 20:57:43 -06:00
3cfb638b48 Remove calls to \.single. 2022-02-01 08:41:27 -06:00
7b1aaf69a2 Run visibility systems more often. 2022-01-27 08:10:45 -06:00
e4ee87ee27 Various crash fixes. 2022-01-20 18:06:20 -06:00
c0980f66c1 Use new format strings. 2022-01-19 16:38:32 -06:00
a214206caf Assorted small changes. 2022-01-13 14:43:02 -06:00
ae7a0d13fa Finish port to Bevy 0.6. 2022-01-12 11:05:12 -06:00
698f12d9bd WIP: Continue upgrade. 2022-01-10 23:05:51 -06:00
356caa09e0 WIP: Begin porting to Bevy 0.6. 2022-01-10 13:52:27 -06:00
3f8636a639 Run visibility systems more often. 2021-12-20 08:41:33 -06:00
3b42af12e1 Route all visibility updates through a single system. 2021-10-12 16:59:59 -05:00
12f36d20e7 Visibility performance optimizations. 2021-10-01 09:07:29 -05:00
e8caa58b08 Optimize visibility. 2021-09-28 14:36:21 -05:00
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