diff --git a/examples/015_image_rotation.lua b/examples/015_image_rotation.lua index 1e7cd97..67bb7ee 100644 --- a/examples/015_image_rotation.lua +++ b/examples/015_image_rotation.lua @@ -7,12 +7,10 @@ function love.load() end function love.update(dt) - angle = angle + dt + angle = (angle + dt) % (2 * math.pi) x, y = 400 + math.cos(angle)*100, 300 + math.sin(angle)*100 end function love.draw() - love.graphics.draw(image, x, y) + love.graphics.draw(image, x, y,angle) end - -