Recenter if the screen size isn't the same ?
Posted: Wed Feb 11, 2015 5:53 am
Hey, I wonder how to recenter or redraw all the elements of the main.lua file, because right now my menu is drawn just one time so if I resize the window the buttons won't be in the middle again! How could i do that ?
I tried with this:
I tried with this:
Code: Select all
if ScreenW ~= love.graphics.getWidth() or ScreenH ~= love.graphics.getHeight() then
some stuff here
end