From dd73539294cd76d761abfaa2467b38c42564b16c Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Wed, 22 Feb 2023 14:46:46 -0500 Subject: [PATCH] inputSpitter for ravy --- source/funkin/play/PlayState.hx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index 0be033a64..b2e0bba12 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -1381,6 +1381,8 @@ class PlayState extends MusicBeatState startingSong = true; + inputSpitter = []; + FlxG.sound.music.pause(); vocals.pause(); @@ -1804,6 +1806,11 @@ class PlayState extends MusicBeatState { dispatchEvent(new ScriptEvent(ScriptEvent.SONG_END)); + #if sys + // spitter for ravy, teehee!! + sys.io.File.saveContent("./scores.txt", inputSpitter.join("\n")); + #end + seenCutscene = false; deathCounter = 0; mayPauseGame = false; @@ -2034,6 +2041,11 @@ class PlayState extends MusicBeatState */ // } + /** + * Spitting out the input for ravy 🙇‍♂️!! + */ + var inputSpitter:Array = []; + public function keyShit(test:Bool):Void { if (PlayState.instance == null) return; @@ -2052,6 +2064,15 @@ class PlayState extends MusicBeatState controls.NOTE_UP_R, controls.NOTE_RIGHT_R ]; + + if (pressArray.contains(true)) + { + var lol:Array = cast pressArray; + inputSpitter.push(Std.int(Conductor.songPosition) + " " + lol.join(" ")); + } + + if (FlxG.keys.justPressed.B) trace(inputSpitter.join("\n")); + // HOLDS, check for sustain notes if (holdArray.contains(true) && PlayState.instance.generatedMusic) {