mike: Added a couple comments and an FPS counter

This commit is contained in:
Logen Kain 2017-07-25 18:45:06 -07:00
parent 091e055841
commit af9aef995e

View File

@ -25,6 +25,10 @@ function love.update(dt)
end
function love.draw()
--Draw paddle
love.graphics.rectangle("line", player.x, player.y, player.width, player.height)
--Draw ball
love.graphics.rectangle("line", ball.x, ball.y, ball.width, ball.height)
--FPS counter
love.graphics.print("FPS: "..tostring(love.timer.getFPS( )), 10, 10)
end