OOPS i forgot to remove the debug stuff
This commit is contained in:
parent
60fedd28d7
commit
bc0bf26289
1 changed files with 0 additions and 1 deletions
1
main.lua
1
main.lua
|
@ -23,7 +23,6 @@ function getMousePosition()
|
||||||
|
|
||||||
local sx, sy, sw, sh = 0, 0, love.graphics.getWidth(), love.graphics.getHeight()
|
local sx, sy, sw, sh = 0, 0, love.graphics.getWidth(), love.graphics.getHeight()
|
||||||
if love.isVersionCompatible('11.3') then sx, sy, sw, sh = love.window.getSafeArea() end
|
if love.isVersionCompatible('11.3') then sx, sy, sw, sh = love.window.getSafeArea() end
|
||||||
sx, sy, sw, sh = 100, 100, love.graphics.getWidth() - 200, love.graphics.getHeight() - 200
|
|
||||||
|
|
||||||
x, y = ((x - sx) / sw) * love.graphics.getWidth(), ((y - sy) / sh) * love.graphics.getHeight()
|
x, y = ((x - sx) / sw) * love.graphics.getWidth(), ((y - sy) / sh) * love.graphics.getHeight()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue