adjust button location on resize/rotate
This commit is contained in:
parent
3345d055c9
commit
60dce24988
|
@ -1,6 +1,5 @@
|
|||
on.initialize = function()
|
||||
math.randomseed(os.time())
|
||||
_, _, Safe_width, Safe_height = love.window.getSafeArea()
|
||||
initialize_layout()
|
||||
new()
|
||||
end
|
|
@ -1,4 +1,5 @@
|
|||
initialize_layout = function()
|
||||
_, _, Safe_width, Safe_height = love.window.getSafeArea()
|
||||
X = App.screen.width/4
|
||||
Y = App.screen.height/4
|
||||
local w, h = App.screen.width/5, App.screen.height/5
|
||||
|
|
Loading…
Reference in New Issue