mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Merge pull request #109 from davidskeck/patch-1
cam doesn't exist, but camera does. :)
This commit is contained in:
commit
3e83a275fa
@ -17,7 +17,7 @@ worry about that.
|
|||||||
end
|
end
|
||||||
|
|
||||||
function love.update(dt)
|
function love.update(dt)
|
||||||
local dx,dy = player.x - cam.x, player.y - cam.y
|
local dx,dy = player.x - camera.x, player.y - camera.y
|
||||||
camera:move(dx/2, dy/2)
|
camera:move(dx/2, dy/2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user