Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function speed_bar(x, y)
- local barWidth = 25
- local barHeight = 280
- local precision = 200
- local speed_pct = math.min(math.floor(precision * (player.speed() - skiBarMin)/(skiBarMax - skiBarMin))/precision, 1)
- drawRect(x, 2.03*y - barWidth, 2*x + barHeight, 2.03*y - barWidth/2, bg_color2)
- drawProgressBar(x, 2.03*y - barWidth, 2*x + barHeight, 2.03*y - barWidth/2, speed_color, 1, speed_pct)
- drawBox(x, 2.03*y - barWidth, 2*x + barHeight, 2.03*y - barWidth/2, health_energy_color_border)
- drawText(player.speed(), speed_color, 17*x, 2.045*y - barWidth, 1, 1, 1)
- end
Advertisement
Add Comment
Please, Sign In to add comment