From ae4f5bf7b232fff1d322333b971e77bb4366742c Mon Sep 17 00:00:00 2001 From: Yoshman29 Date: Thu, 20 Oct 2022 17:23:27 +0200 Subject: [PATCH] we on smth --- buildnumber.txt | 2 +- source/funkin/game/Note.hx | 10 +++++----- source/funkin/game/PlayState.hx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/buildnumber.txt b/buildnumber.txt index b697ae41..876cce90 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -635 \ No newline at end of file +654 \ No newline at end of file diff --git a/source/funkin/game/Note.hx b/source/funkin/game/Note.hx index b2427d57..ac43a7e1 100644 --- a/source/funkin/game/Note.hx +++ b/source/funkin/game/Note.hx @@ -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(); diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 7682cc3f..d06ae1a8 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -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;