From 70fc88fc10732937b6bc73f56d4e85f744572e08 Mon Sep 17 00:00:00 2001 From: David Keck Date: Mon, 8 Oct 2018 17:34:40 -0400 Subject: [PATCH] cam doesn't exist, but camera does. :) --- docs/camera.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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