cleanup
This commit is contained in:
parent
011269acab
commit
bb8f50116a
5 changed files with 98 additions and 89 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue