mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-28 15:26:12 +00:00
Fix the alignment of the song name in the results screen
This commit is contained in:
parent
e72c2ed41b
commit
7c6bf7ef45
|
|
@ -161,9 +161,13 @@ class ResultState extends MusicBeatSubState
|
||||||
songName = new FlxBitmapText(FlxBitmapFont.fromMonospace(Paths.image("resultScreen/tardlingSpritesheet"), fontLetters, FlxPoint.get(49, 62)));
|
songName = new FlxBitmapText(FlxBitmapFont.fromMonospace(Paths.image("resultScreen/tardlingSpritesheet"), fontLetters, FlxPoint.get(49, 62)));
|
||||||
songName.text = params.title;
|
songName.text = params.title;
|
||||||
songName.letterSpacing = -15;
|
songName.letterSpacing = -15;
|
||||||
songName.angle = -4.1;
|
songName.angle = -4.4;
|
||||||
add(songName);
|
add(songName);
|
||||||
|
|
||||||
|
var angleRad = songName.angle * Math.PI / 180;
|
||||||
|
speedOfTween.x = -1.0 * Math.cos(angleRad);
|
||||||
|
speedOfTween.y = -1.0 * Math.sin(angleRad);
|
||||||
|
|
||||||
timerThenSongName();
|
timerThenSongName();
|
||||||
|
|
||||||
songName.shader = maskShaderSongName;
|
songName.shader = maskShaderSongName;
|
||||||
|
|
@ -319,7 +323,7 @@ class ResultState extends MusicBeatSubState
|
||||||
difficulty.y = -difficulty.height;
|
difficulty.y = -difficulty.height;
|
||||||
FlxTween.tween(difficulty, {y: diffYTween}, 0.5, {ease: FlxEase.quartOut, startDelay: 0.8});
|
FlxTween.tween(difficulty, {y: diffYTween}, 0.5, {ease: FlxEase.quartOut, startDelay: 0.8});
|
||||||
|
|
||||||
songName.y = diffYTween - 30;
|
songName.y = diffYTween - 35;
|
||||||
songName.x = (difficulty.x + difficulty.width) + 20;
|
songName.x = (difficulty.x + difficulty.width) + 20;
|
||||||
|
|
||||||
new FlxTimer().start(3, _ -> {
|
new FlxTimer().start(3, _ -> {
|
||||||
|
|
@ -328,7 +332,7 @@ class ResultState extends MusicBeatSubState
|
||||||
}
|
}
|
||||||
|
|
||||||
var movingSongStuff:Bool = false;
|
var movingSongStuff:Bool = false;
|
||||||
var speedOfTween:FlxPoint = FlxPoint.get(-1, 0.1);
|
var speedOfTween:FlxPoint = FlxPoint.get(-1, 1);
|
||||||
|
|
||||||
override function draw():Void
|
override function draw():Void
|
||||||
{
|
{
|
||||||
|
|
@ -369,14 +373,6 @@ class ResultState extends MusicBeatSubState
|
||||||
speedOfTween.x -= 0.1;
|
speedOfTween.x -= 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.UP) speedOfTween.y -= 0.1;
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.DOWN) speedOfTween.y += 0.1;
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.PERIOD) songName.angle += 0.1;
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.COMMA) songName.angle -= 0.1;
|
|
||||||
|
|
||||||
if (controls.PAUSE)
|
if (controls.PAUSE)
|
||||||
{
|
{
|
||||||
FlxTween.tween(FlxG.sound.music, {volume: 0}, 0.8);
|
FlxTween.tween(FlxG.sound.music, {volume: 0}, 0.8);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue