Not really a full example without this IMO.

This commit is contained in:
David Keck 2018-10-08 19:43:50 -04:00 committed by GitHub
parent 0bf301f710
commit fb548a67ee
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 - cam.x, player.y - cam.y
camera:move(dx/2, dy/2)
end
function love.draw()
camera:attach()
-- do your drawing here
camera:detach()
end
List of Functions
-----------------