/ lanespeed calc

This commit is contained in:
FajsiEx 2021-10-12 20:09:42 +02:00
parent 6a631ea9af
commit 57cc23a413
1 changed files with 4 additions and 2 deletions

View File

@ -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 {