added pause and music
This commit is contained in:
+2
-1
@@ -19,7 +19,6 @@ local function button(x,y, w, h, text, selected)
|
||||
-- Place text inside the rectangle
|
||||
love.graphics.setFont(MenuFont)
|
||||
love.graphics.print(text, textX, textY)
|
||||
|
||||
end
|
||||
|
||||
local function title()
|
||||
@@ -40,4 +39,6 @@ function DrawMenu()
|
||||
button(100, 350, bwidth, bheight, "???", MENU_POS == 1 and true or false)
|
||||
button(100, 500, bwidth, bheight, "???", MENU_POS == 2 and true or false)
|
||||
button(100, 650, bwidth, bheight, "Quit", MENU_POS == 3 and true or false)
|
||||
|
||||
love.graphics.setColor(255,255,255) -- reset colours
|
||||
end
|
||||
@@ -8,6 +8,7 @@ function MenuKeyPressed(key)
|
||||
--Change state to GAME!
|
||||
_G.GAMESTATE = "GAME"
|
||||
print("STATE CHANEGD: GAME!")
|
||||
musicMenu:stop()
|
||||
|
||||
elseif MENU_POS == 1 then
|
||||
print("STATE CHANEGD: DUNNO!")
|
||||
|
||||
Reference in New Issue
Block a user