fixed camera examples

This commit is contained in:
Tim Anema 2014-12-05 09:38:21 -05:00
parent 8e30cacae0
commit 2282d9ea33
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ function love.update(dt)
scale = scale + 0.01 scale = scale + 0.01
end 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:setScale(scale)
cam:setPosition(x, y) cam:setPosition(x, y)

View File

@ -59,7 +59,7 @@ function love.update(dt)
scale = scale + 0.01 scale = scale + 0.01
end 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:lookAt(x, y)
cam:zoom(scale) cam:zoom(scale)