Merge pull request #109 from davidskeck/patch-1

cam doesn't exist, but camera does. :)
This commit is contained in:
Matthias Richter 2018-10-14 13:36:11 +02:00 committed by GitHub
commit 3e83a275fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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