Skip to content

Commit

Permalink
Updating example 15 with the suggestions of tuupakku.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-dardery committed Feb 12, 2016
1 parent 35929d7 commit 63f8bf4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/015_image_rotation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit 63f8bf4

Please sign in to comment.