Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
forgor to update funkbar draw complex
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeMaru committed Jan 1, 2024
1 parent fbcb4cc commit 1a8b48e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 10 additions & 8 deletions source/funkin/objects/funkui/FunkBar.hx
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,22 @@ class FunkBar extends FlxSpriteExt {
_matrix.translate(-origin.x, -origin.y);
_matrix.scale(scale.x, scale.y);

if (bakedRotationAngle <= 0) {
updateTrig();
if (angle != 0) _matrix.rotateWithTrig(_cosAngle, _sinAngle);
if (angle != 0) {
__updateTrig();
_matrix.rotateWithTrig(_cosAngle, _sinAngle);
}

if (skew.x != 0 || skew.y != 0) {
inline _skewMatrix.identity();
_skewMatrix.b = Math.tan(skew.y * FlxAngle.TO_RAD);
_skewMatrix.c = Math.tan(skew.x * FlxAngle.TO_RAD);
inline _matrix.concat(_skewMatrix);
}

getScreenPosition(_point, camera).subtractPoint(offset);
_point.add(origin.x, origin.y);
_matrix.translate(_point.x, _point.y);

if (isPixelPerfectRender(camera)) {
_matrix.tx = Math.floor(_matrix.tx);
_matrix.ty = Math.floor(_matrix.ty);
}

/*
* This isn't pretty too look at but shhhhhh it works
**/
Expand Down
1 change: 1 addition & 0 deletions source/funkin/states/editors/chart/ChartGridBase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ class ChartSustain extends Sustain {
super();
scrollFactor.set(1,1);
angle = 0;
flipX = false;
active = false;
boundsOffsetY = -FlxG.height;
}
Expand Down

0 comments on commit 1a8b48e

Please sign in to comment.