1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 03:13:45 +00:00

Merge pull request #641 from FunkinCrew/maybemaru/pixels-per-ms

[PUBLIC PR] Make use of Constants.PIXELS_PER_MS consistent.
This commit is contained in:
Cameron Taylor 2024-07-08 22:12:18 -04:00 committed by GitHub
commit 7a653707a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ class Strumline extends FlxSpriteGroup
static function get_RENDER_DISTANCE_MS():Float
{
return FlxG.height / 0.45;
return FlxG.height / Constants.PIXELS_PER_MS;
}
/**

View file

@ -160,7 +160,7 @@ class SustainTrail extends FlxSprite
*/
public static inline function sustainHeight(susLength:Float, scroll:Float)
{
return (susLength * 0.45 * scroll);
return (susLength * Constants.PIXELS_PER_MS * scroll);
}
function set_sustainLength(s:Float):Float