Print fps

This commit is contained in:
sam-astro 2022-01-13 10:07:42 -05:00 committed by GitHub
parent 90ce2e5dc3
commit d6eb1cd505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,9 +58,10 @@ func Update(deltaTime)
float stopSpeed = deltaTime * 15
float newY = lPaddleTargetPosition.y
float lerpedY = Lerp(oldY, newY, stopSpeed)
print "0 < " + newY + " < " + SCREENH
//print "0 < " + newY + " < " + SCREENH
lPaddle.position = NVec2(newX, lerpedY)
print "FPS: " + 1 / deltaTime
// Finally draws all of the sprites