So I have somewhat of a problem here. I have developed a game for android phones, and it's finished now, only thing left is for it to work on different resolutions. But the problem Is I hadn't thought about that when I began, so now I can find no way to make it work for different resolutions. I thought there would be some easy way but I am not finding it.
Here is all the code of the game: https://github.com/Mermersk/Duckentry
What I have done is that some/all graphics scale correctly but everything else doesn't. I don't know if it all scales because I cant progress. I cant progress because all the buttons are wonky and don't really work.
I have googled and asked but all the solutions I find are either to complicated for me or I just don't see how I can make it work with my game.
I've got this in load:
Code: Select all
g_width, g_height = love.window.getDimensions()
game_width = 480
game_height = 320
scale_x = g_width/game_width
scale_y = g_height/game_height
Code: Select all
love.graphics.scale(g_width/game_width, g_height/game_height)