From fb548a67ee0b4a6ec616ee41605094c220d94d07 Mon Sep 17 00:00:00 2001 From: David Keck Date: Mon, 8 Oct 2018 19:43:50 -0400 Subject: [PATCH] Not really a full example without this IMO. --- docs/camera.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/camera.rst b/docs/camera.rst index b3d355d..77ca7f4 100644 --- a/docs/camera.rst +++ b/docs/camera.rst @@ -20,6 +20,12 @@ worry about that. local dx,dy = player.x - cam.x, player.y - cam.y camera:move(dx/2, dy/2) end + + function love.draw() + camera:attach() + -- do your drawing here + camera:detach() + end List of Functions -----------------