mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Merge pull request #110 from davidskeck/patch-2
Not really a full example without this IMO.
This commit is contained in:
commit
4c73c1f5a6
@ -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
|
||||
-----------------
|
||||
|
Loading…
Reference in New Issue
Block a user