Dewott2501 / Mario-Madness

el pibe mario
Apache License 2.0
56 stars 99 forks source link

Fix FPS problem #1

Closed Starmapo closed 2 years ago

Starmapo commented 2 years ago

Fixes the different framerate issue by using 'elapsed' (amount of time that passed between the last updated frame). 30 fps: floatshit += 0.2 [0.2 30 = 6 in one second] 60 fps: floatshit += 0.1 [0.1 60 = 6 in one second] 120 fps: floatshit += 0.05 [0.05 * 120 = 6 in one second]