mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Not really a full example without this IMO.
This commit is contained in:
parent
0bf301f710
commit
fb548a67ee
@ -20,6 +20,12 @@ worry about that.
|
|||||||
local dx,dy = player.x - cam.x, player.y - cam.y
|
local dx,dy = player.x - cam.x, player.y - cam.y
|
||||||
camera:move(dx/2, dy/2)
|
camera:move(dx/2, dy/2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function love.draw()
|
||||||
|
camera:attach()
|
||||||
|
-- do your drawing here
|
||||||
|
camera:detach()
|
||||||
|
end
|
||||||
|
|
||||||
List of Functions
|
List of Functions
|
||||||
-----------------
|
-----------------
|
||||||
|
Loading…
Reference in New Issue
Block a user