Commit Graph

10 Commits

Author SHA1 Message Date
Lephenixnoir 61e50d1984
nerf magic build 2022-06-25 19:43:20 +01:00
Lephenixnoir 22fb1c55d0
restrict auto-aim to 90 degrees 2022-06-25 17:49:52 +01:00
Lephenixnoir a84592b280
add ranged magic attack with auto-aim on scepter in lv2 2022-06-25 17:04:07 +01:00
Lephenixnoir 3c3883b076
animated tileset 2022-02-11 20:42:20 +01:00
Lephenixnoir 8d3a0994c5
performance improvements with pathfinding
* Less queuing in Dijkstra by using distance[] to indicate the lowest
  queued distance (dir[] still doubles down as "seen" array). Drops
  iterations from ~350 to ~150, 5.5 ms -> 2.0 ms
* Less raycast attempts in the shortcut method, barely noticeable but
  avoids massive spikes from 7 to 35/75 ms in Lab with 40 entities (!!)
* General optimizations with -O3 instead of -Os (0.5-1.0 ms gained per
  frame for ~6 kB increase in size)
* Compute pathfinding every 4th frame for each entity, instead of every
  frame

Now basically a fairly 30 FPS, and that's 30 ms rendering + 3 ms
simulation.
2022-02-08 22:48:08 +01:00
Lephenixnoir 93c1028123
dijkstra-based pathfinding, avoids crowded areas 2022-02-06 09:32:54 +01:00
Lephenixnoir cb3f363cfe
switch engine to ECS and rewrite just about everything 2021-12-25 11:48:53 +01:00
Lephenixnoir 228dec623e
minor code improvements, including renamed geometry types 2021-12-25 11:48:53 +01:00
Lephenixnoir d412daa540
shared pathfinding, combat basics, particles 2021-06-25 11:44:52 +02:00
Lephenixnoir de8bbf131a
pathfinding and some cleanup 2021-06-15 17:27:30 +02:00