/ lanespeed calc
This commit is contained in:
parent
6a631ea9af
commit
57cc23a413
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue