1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-28 15:57:42 +00:00

lerp tweaks and shit more

This commit is contained in:
Cameron Taylor 2021-03-24 23:39:19 -04:00
parent 7766ddf9bd
commit 85e181bc80

View file

@ -1488,8 +1488,8 @@ class PlayState extends MusicBeatState
// FlxG.watch.addQuick('VOL', vocals.amplitudeLeft);
// FlxG.watch.addQuick('VOLRight', vocals.amplitudeRight);
iconP1.setGraphicSize(Std.int(FlxMath.lerp(150, iconP1.width, 0.50)));
iconP2.setGraphicSize(Std.int(FlxMath.lerp(150, iconP2.width, 0.50)));
iconP1.setGraphicSize(Std.int(FlxMath.lerp(150, iconP1.width, 0.85)));
iconP2.setGraphicSize(Std.int(FlxMath.lerp(150, iconP2.width, 0.85)));
iconP1.updateHitbox();
iconP2.updateHitbox();
@ -1522,6 +1522,8 @@ class PlayState extends MusicBeatState
if (generatedMusic && PlayState.SONG.notes[Std.int(curStep / 16)] != null)
{
cameraRightSide = PlayState.SONG.notes[Std.int(curStep / 16)].mustHitSection;
cameraMovement();
}
@ -1944,9 +1946,11 @@ class PlayState extends MusicBeatState
curSection += 1;
}
var cameraRightSide:Bool = false;
function cameraMovement()
{
if (camFollow.x != dad.getMidpoint().x + 150 && !PlayState.SONG.notes[Std.int(curStep / 16)].mustHitSection)
if (camFollow.x != dad.getMidpoint().x + 150 && !cameraRightSide)
{
camFollow.setPosition(dad.getMidpoint().x + 150, dad.getMidpoint().y - 100);
// camFollow.setPosition(lucky.getMidpoint().x - 120, lucky.getMidpoint().y + 210);
@ -1972,7 +1976,7 @@ class PlayState extends MusicBeatState
}
}
if (PlayState.SONG.notes[Std.int(curStep / 16)].mustHitSection && camFollow.x != boyfriend.getMidpoint().x - 100)
if (cameraRightSide && camFollow.x != boyfriend.getMidpoint().x - 100)
{
camFollow.setPosition(boyfriend.getMidpoint().x - 100, boyfriend.getMidpoint().y - 100);
@ -2123,7 +2127,7 @@ class PlayState extends MusicBeatState
}
}
if ((up || right || down || left) && !boyfriend.stunned && generatedMusic)
if ((up || right || down || left) && /*!boyfriend.stunned && */ generatedMusic)
{
notes.forEachAlive(function(daNote:Note)
{