pgimeno wrote: ↑Tue Jun 09, 2020 10:44 am
I get X mirrored. Any idea if that's fixable?
Well, I've fixed it with this:
Code: Select all
diff -ru a/main.lua b/main.lua
--- a/main.lua 2020-06-09 00:48:08.000000000 +0200
+++ b/main.lua 2020-06-11 02:29:18.696073441 +0200
@@ -123,7 +123,7 @@
end
if iSystem.iMouse then
iSystem.iMouse[1],iSystem.iMouse[2] = love.mouse.getPosition()
- iSystem.iMouse[1],iSystem.iMouse[2] = resolution[1]-iSystem.iMouse[1],resolution[2]-iSystem.iMouse[2]
+ iSystem.iMouse[1],iSystem.iMouse[2] = iSystem.iMouse[1],resolution[2]-iSystem.iMouse[2]
if love.mouse.isDown(1) then
if iSystem.iMouse[3]<0 then
iSystem.iMouse[3],iSystem.iMouse[4] = love.mouse.getPosition()
@@ -139,5 +139,5 @@
end
function love.draw()
- love.graphics.draw(canvas,0,0,math.pi,1,1,resolution[1],resolution[2])
+ love.graphics.draw(canvas,0,0,0,1,-1,0,resolution[2])
end
Also, I concur with Andlac028; I also get a 2x speedup when removing the love.graphics.draw line from love.update.