mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
fixed camera examples
This commit is contained in:
parent
8e30cacae0
commit
2282d9ea33
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user