Scaling on mobile ?
Posted: Mon Jul 10, 2017 4:11 am
so.. for example.. the width of my pc is 1000 pixels.. and i make an android game in it, so if i want to make a rectangle with 250 pixels width (1/4 of the screen) and make it as big as 1/4 of my mobile phone's width.. i need to do this ?
is there any easier way out ? like scaling everything on load function ?
or something like this?
Code: Select all
love.graphics.rectangle("fill", x, y, love.graphics.getWidth()/4, 50)
or something like this?
Code: Select all
love.graphics.rectangle("fill", x, y, 250 * scale, 50)