Scaling and scaling xy values?
Posted: Fri Nov 13, 2020 6:55 pm
I know enough to be dangerous so far so please be kind! I have a project that i can scale the window to different scales by pressing the 123or 4 number. the graphics all scale but my mouseclicks are all at the original spots making everything off. Im not sure how to even go about this but how do I increase the window and all its components together?
i start with these window settings in the main love.load.
Any help would be greatly appreciated.
function love.load()
love.window.setMode(900, 600, {resizable=true, vsync=false, minwidth=400, minheight=300})
love.window.setPosition(300,100)
love.graphics.scale(SCALE,SCALE)
COREWIDTH = 600
COREHEIGHT =400
SCALE = 1
i start with these window settings in the main love.load.
Any help would be greatly appreciated.
function love.load()
love.window.setMode(900, 600, {resizable=true, vsync=false, minwidth=400, minheight=300})
love.window.setPosition(300,100)
love.graphics.scale(SCALE,SCALE)
COREWIDTH = 600
COREHEIGHT =400
SCALE = 1