Page 1 of 1

x,y coordinates bottom right corner

Posted: Mon Dec 16, 2024 4:00 pm
by 1nsomnal
very newbie question I know but does anyone know what the coordinates are of the bottom right of your viewport/preview? I really hope that that phrasing is logical.
thx :)

Re: x,y coordinates bottom right corner

Posted: Mon Dec 16, 2024 7:27 pm
by marclurr
If you're drawing directly to the window, the bottom right will be window (width - 1, height - 1). You can get them using love.graphics.getWidth/getHeight. The default window size is 800x600.