This commit is contained in:
Yoshman29
2022-10-17 23:12:21 +02:00
parent 6dc138beba
commit 7585db0dd8
3 changed files with 7 additions and 12 deletions
+4
View File
@@ -20,6 +20,10 @@ class NoteGroup extends FlxTypedGroup<Note> {
}
}
// public override function sort() {
// }
public override function draw() {
@:privateAccess var oldDefaultCameras = FlxCamera._defaultCameras;
@:privateAccess if (cameras != null) FlxCamera._defaultCameras = cameras;
+2 -11
View File
@@ -849,7 +849,6 @@ class PlayState extends MusicBeatState
}
else
{
// Conductor.songPosition = FlxG.sound.music.time;
Conductor.songPosition += FlxG.elapsed * 1000;
if (!paused)
@@ -857,13 +856,9 @@ class PlayState extends MusicBeatState
songTime += FlxG.game.ticks - previousFrameTime;
previousFrameTime = FlxG.game.ticks;
// Interpolation type beat
if (Conductor.lastSongPos != Conductor.songPosition)
if (Math.abs(FlxG.sound.music.time - Conductor.songPosition) > 20)
{
songTime = (songTime + Conductor.songPosition) / 2;
Conductor.lastSongPos = Conductor.songPosition;
// Conductor.songPosition += FlxG.elapsed * 1000;
// trace('MISSED FRAME');
resyncVocals();
}
}
@@ -1411,10 +1406,6 @@ class PlayState extends MusicBeatState
{
super.stepHit();
scripts.call("stepHit", [curStep]);
if (FlxG.sound.music.time > Conductor.songPosition + 20 || FlxG.sound.music.time < Conductor.songPosition - 20)
{
resyncVocals();
}
}
public var lightningStrikeBeat:Int = 0;