Merge pull request #110 from davidskeck/patch-2

Not really a full example without this IMO.
This commit is contained in:
Matthias Richter 2018-10-14 13:36:42 +02:00 committed by GitHub
commit 4c73c1f5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
-----------------