Skip to content

Commit

Permalink
Merge pull request #110 from davidskeck/patch-2
Browse files Browse the repository at this point in the history
Not really a full example without this IMO.
  • Loading branch information
vrld authored Oct 14, 2018
2 parents 3e83a27 + fb548a6 commit 4c73c1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/camera.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ worry about that.
local dx,dy = player.x - camera.x, player.y - camera.y
camera:move(dx/2, dy/2)
end
function love.draw()
camera:attach()
-- do your drawing here
camera:detach()
end

List of Functions
-----------------
Expand Down

0 comments on commit 4c73c1f

Please sign in to comment.