<div dir="ltr"><div>Unfortunately I found another formation that has unselectable targets for both the angle<45 and angle<=45 variants. And it shows a fundamental problem: if two targets are equidistant from the current one, which should you pick? If you imagine a whole lot of enemies arranged in a regular grid rotated 45 degrees, so each enemy has four diagonal neighbours at equal distance, then either:<br></div><div>-arrow keys move to another target directly up/down/left/right, so the diagonal neighbours are unreachable  (like the angle<45 variant)</div><div>or</div><div>-arrow keys move arbitrarily to one of the two nearest (diagonal) neighbours, and you'll have little control over where the cursor goes, again with many unselectable targets (like the angle<=45 variant)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 7 May 2021 at 23:06, James Paige <<a href="mailto:Bob@hamsterrepublic.com">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Nice! This variant does sound like a big improvement!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri., May 7, 2021, 1:00 a.m. , <<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">teeemcee<br>
2021-05-06 22:00:03 -0700 (Thu, 06 May 2021)<br>
625<br>
Two changes to battle cursor movement<br>
<br>
If you put four targets in a diamond, 45 degrees to each other, a 5th one in the<br>
center could be untargetable! (Example in test.rpg). To fix this, switch to the<br>
fallback cursor movement behaviour when angle >= 45 degrees instead of > 45.<br>
<br>
Secondly, change the fallback behaviour from "pick the target with the minimum<br>
angle" to "pick the nearest target (by L1 norm)". This reduces the tendency to<br>
skip over targets that are in a roughly straight line when pressing arrows<br>
mostly perpendicular to the line. However, skipping will still happen when the<br>
line is close to a 45 degree angle.<br>
---<br>
U   wip/bmodsubs.bas<br>
U   wip/testgame/test.rpg<br>
U   wip/whatsnew.txt<br>
<br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" rel="noreferrer" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>