we on smth

This commit is contained in:
Yoshman29
2022-10-20 17:23:27 +02:00
parent f7d02e1c12
commit ae4f5bf7b2
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1 +1 @@
635
654
+5 -5
View File
@@ -189,7 +189,7 @@ class Note extends FlxSprite
var oldOffset = FlxPoint.get(offset.x, offset.y);
// get offset pos without origin
var pos = FlxPoint.get(origin.x - offset.x, origin.y - offset.y);
var pos = FlxPoint.get(-offset.x + origin.x, -offset.y + origin.y);
// updates sin and cos values for angle
updateTrig();
@@ -198,8 +198,8 @@ class Note extends FlxSprite
(_sinAngle * pos.x) + (-_cosAngle * pos.y));
// applies new values
x -= anglePos.x * -_sinAngle;
y -= anglePos.y * _cosAngle;
x -= anglePos.x;
y -= anglePos.y;
offset.set(origin.x, origin.y);
// draw
@@ -207,8 +207,8 @@ class Note extends FlxSprite
// reset values
offset.set(oldOffset.x, oldOffset.y);
x += anglePos.x * -_sinAngle;
y += anglePos.y * _cosAngle;
x += anglePos.x;
y += anglePos.y;
// put flxpoints back in the recycling pool
oldOffset.put();
+2 -2
View File
@@ -795,8 +795,8 @@ class PlayState extends MusicBeatState
songTime += FlxG.game.ticks - previousFrameTime;
previousFrameTime = FlxG.game.ticks;
if (Math.abs(FlxG.sound.music.time - Conductor.songPosition) > 20)
resyncVocals();
// if (Math.abs(FlxG.sound.music.time - Conductor.songPosition) > 20)
// resyncVocals();
}
// Conductor.lastSongPos = FlxG.sound.music.time;