mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-11 01:14:26 +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
|
||||
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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user