Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions source/funkin/game/HudCamera.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,10 @@ class HudCamera extends FlxCamera {
* Keeps the sprites not flipped, but the positions are flipped.
*/
public var downscroll:Bool = false;
//public override function update(elapsed:Float) {
// super.update(elapsed);
// // flipY = downscroll;
//}


// public override function drawPixels(?frame:FlxFrame, ?pixels:BitmapData, matrix:FlxMatrix, ?transform:ColorTransform, ?blend:BlendMode, ?smoothing:Bool = false,
// ?shader:FlxShader):Void
// {
// if (downscroll) {
// matrix.scale(1, -1);
// matrix.translate(0, height);
// }
// super.drawPixels(frame, pixels, matrix, transform, blend, smoothing, shader);
// }


public override function alterScreenPosition(spr:FlxObject, pos:FlxPoint) {
if (downscroll) {
pos.set(pos.x, height - pos.y - spr.height);
}
return pos;
}
}
}