From 2282d9ea334e2af4d0e6f0bdbcbe230dd9c384af Mon Sep 17 00:00:00 2001 From: Tim Anema Date: Fri, 5 Dec 2014 09:38:21 -0500 Subject: [PATCH] fixed camera examples --- examples/gamera.lua | 2 +- examples/hump.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gamera.lua b/examples/gamera.lua index 794848d..8c54bbe 100644 --- a/examples/gamera.lua +++ b/examples/gamera.lua @@ -59,7 +59,7 @@ function love.update(dt) scale = scale + 0.01 end - lightMouse:setPosition((love.mouse.getX() - x)/scale, (love.mouse.getY() - y)/scale, z) + lightMouse:setPosition((love.mouse.getX() - x)/scale, (love.mouse.getY() - y)/scale) cam:setScale(scale) cam:setPosition(x, y) diff --git a/examples/hump.lua b/examples/hump.lua index d5a198c..5d5d612 100644 --- a/examples/hump.lua +++ b/examples/hump.lua @@ -59,7 +59,7 @@ function love.update(dt) scale = scale + 0.01 end - lightMouse:setPosition((love.mouse.getX() - x)/scale, (love.mouse.getY() - y)/scale, z) + lightMouse:setPosition((love.mouse.getX() - x)/scale, (love.mouse.getY() - y)/scale) cam:lookAt(x, y) cam:zoom(scale)