cam doesn't exist, but camera does. :)

This commit is contained in:
David Keck 2018-10-08 17:34:40 -04:00 committed by GitHub
parent 0bf301f710
commit 70fc88fc10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ worry about that.
end
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)
end