Page 1 of 1

Recenter if the screen size isn't the same ?

Posted: Wed Feb 11, 2015 5:53 am
by Happy5354
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:

Code: Select all

if ScreenW ~= love.graphics.getWidth() or ScreenH ~= love.graphics.getHeight() then
		some stuff here
	end

Re: Recenter if the screen size isn't the same ?

Posted: Wed Feb 11, 2015 7:21 am
by veethree
Have a look at love.resize.