mike: Added a couple comments and an FPS counter
This commit is contained in:
parent
091e055841
commit
af9aef995e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user