Touchbar breaks fullscreen on Android
Posted: Sun Jan 28, 2018 7:23 pm
Hello!
I've been getting my game from Windows to Android, and it works!
But there is just one problem.
This is what I use to make it fullscreen and then get the monitor / screen / device dimensions.
I then have some coordinates for the first player and second player.
On Windows it does it perfectly, but on Android the little touchbar works like a border on the screen... How can I prevent this from happening and let player_2 go all the way out to the right.
My current thought is to make a "fake" loading screen that waits a few seconds and then set the screen sizes and everything, but I imagine that there's a better way of doing it.
I've been getting my game from Windows to Android, and it works!
But there is just one problem.
This is what I use to make it fullscreen and then get the monitor / screen / device dimensions.
Code: Select all
love.window.setMode(0, 0, {fullscreen=true, borderless=true})
screen_width = love.graphics.getWidth()
screen_height = love.graphics.getHeight()
Code: Select all
player_width = 20
player_1.x = 0 --left
player_2.x = screen_width - player_width --right
My current thought is to make a "fake" loading screen that waits a few seconds and then set the screen sizes and everything, but I imagine that there's a better way of doing it.