x,y coordinates bottom right corner

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
1nsomnal
Prole
Posts: 1
Joined: Mon Dec 16, 2024 3:56 pm

x,y coordinates bottom right corner

Post 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 :)
User avatar
marclurr
Party member
Posts: 158
Joined: Fri Apr 22, 2022 9:25 am

Re: x,y coordinates bottom right corner

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests