This commit is contained in:
Boki 2026-02-22 11:38:24 -05:00
parent 011269acab
commit bb8f50116a
5 changed files with 98 additions and 89 deletions

View file

@ -87,7 +87,7 @@ internal sealed class D2dEnemyBoxLayer : ID2dOverlayLayer, IDisposable
if (state.FightPosition is var (fx, fy))
{
const double worldToScreen = 835.0 / 97.0; // inverse of screenToWorld
const int screenCx = 1280, screenCy = 720;
const int screenCx = 1280, screenCy = 660; // player character screen position
var wp = state.NavPosition;
var sx = (float)(screenCx + (fx - wp.X) * worldToScreen);
var sy = (float)(screenCy + (fy - wp.Y) * worldToScreen);