ModusCreateOrg/modite-adventure

Mid-boss shadows cut out when x < 0

Closed this issue · 2 comments

Please look at the mid-boss shadow shadow. It disappears when the start of the circle is < 0 on X, it seems. :(
shadow bug

@Aaron-Goldman perhaps you'll have no more luck with this, from what I gather it seems like the shadow is being clipped in GAnchorSprite here:

    TRect r = mShadow;
    r.Offset(x - aViewPort->mWorldX + aViewPort->mOffsetX, y - aViewPort->mWorldY + aViewPort->mOffsetY);
    if (aViewPort->GetRect().Overlaps(r)) {
      ...render shadow
    }

The above returns false when shadow center is outside viewport, but this doesn't happen for other enemies.

Good to see it's not an issue w/ FillCircle() :)