From d9b589feeade67fc16809b0971b32ff10ca2c076 Mon Sep 17 00:00:00 2001 From: Entarno54 Date: Thu, 29 May 2025 23:42:27 +0700 Subject: [PATCH] Fixes, removed diffs for stress (not done) --- main.lua | 1 + modules/states/playstate.lua | 18 ++++++++++-------- songs.json | 2 -- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/main.lua b/main.lua index 4a0a69f..9e5b46e 100644 --- a/main.lua +++ b/main.lua @@ -29,6 +29,7 @@ function love.update(dt) curState.update(dt) else stateLoaded = true -- skipping this update frame + curState.finish() end elseif not curState then if love.keyboard.isDown("return") then diff --git a/modules/states/playstate.lua b/modules/states/playstate.lua index f70404e..0a57a03 100644 --- a/modules/states/playstate.lua +++ b/modules/states/playstate.lua @@ -121,7 +121,7 @@ return function(songName, songDifficulty) end end - local section = chart.notes[math.floor(step / 16) + 1] + local section = chart.notes[math.floor(step / 16) + 1] if section.mustHitSection then myTypes.cameraTarget = myTypes.Vector2(-stage.camera_boyfriend[1], -stage.camera_boyfriend[2]):Add(characters.bf.stageCamera:Negate()):Add(myTypes.Vector2(0, -200)) @@ -264,18 +264,20 @@ return function(songName, songDifficulty) receptors[i + 1] = receptor end - - inst:play() - voices:play() - - elapsed = 0 - - playing = true state.loaded = true myTypes.cameraTarget = myTypes.Vector2() end + function state.finish() + inst:play() + voices:play() + + elapsed = 0 + + playing = true + end + return state end diff --git a/songs.json b/songs.json index 5af6628..d9ff252 100644 --- a/songs.json +++ b/songs.json @@ -6,8 +6,6 @@ "erect" ], "stress": [ - "easy", - "normal", "hard" ] }