menu_state Allow window resizing while in the menu
This commit is contained in:
parent
d70107214a
commit
5e92800d9c
1 changed files with 4 additions and 1 deletions
|
@ -39,6 +39,8 @@ function menu_state:enter()
|
|||
menu_state.entity_list = {}
|
||||
love.graphics.setBackgroundColor(0, 0, 0, 0)
|
||||
|
||||
love.window.setMode(levelWidth(), levelHeight(), {resizable=true, vsync=true})
|
||||
|
||||
local x = 40
|
||||
for player = 1, 2, 1 do
|
||||
local y = 300
|
||||
|
@ -206,6 +208,7 @@ end
|
|||
|
||||
|
||||
function menu_state:keypressed(key, unicode)
|
||||
love.window.setMode(levelWidth(), levelHeight(), {resizable=false, vsync=true})
|
||||
if currentlyChosen == nil then
|
||||
if key == "1" then
|
||||
level_state.mode = "solo"
|
||||
|
|
Loading…
Reference in a new issue