diff --git a/scripts/gameplay/song_panel.lua b/scripts/gameplay/song_panel.lua index d4eb68a..f70360d 100644 --- a/scripts/gameplay/song_panel.lua +++ b/scripts/gameplay/song_panel.lua @@ -54,9 +54,11 @@ local render = function (deltaTime, bpm, laneSpeed) renderOutlinedText(25,y+247, "BPM", 2); renderOutlinedText(25,y+281, "LANE-SPEED", 2); - gfx.TextAlign(gfx.TEXT_ALIGN_RIGHT + gfx.TEXT_ALIGN_MIDDLE) + local actualLaneSpeed = (bpm*laneSpeed)/100 + + gfx.TextAlign(gfx.TEXT_ALIGN_RIGHT + gfx.TEXT_ALIGN_MIDDLE); renderOutlinedText(260,y+247, string.format("%.0f", bpm), 2); - renderOutlinedText(260,y+281, string.format("%.2f", laneSpeed), 2); + renderOutlinedText(260,y+281, string.format("%.2f", actualLaneSpeed), 2); end return {