diff --git a/docs/camera.rst b/docs/camera.rst index b3d355d..dc14d7e 100644 --- a/docs/camera.rst +++ b/docs/camera.rst @@ -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