mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
cam doesn't exist, but camera does. :)
This commit is contained in:
parent
0bf301f710
commit
70fc88fc10
@ -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