making menu and subfolders
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
function DrawMenu()
|
||||
love.graphics.setFont(GameFont)
|
||||
local height = love.graphics.getHeight()
|
||||
local width = love.graphics.getWidth()
|
||||
love.graphics.setColor(1,1,1)
|
||||
love.graphics.rectangle("fill", 0, 0, width, height)
|
||||
love.graphics.setColor(0,0,0)
|
||||
love.graphics.print("MENU", 100,100)
|
||||
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
function MenuKeyPressed(key)
|
||||
if key == "escape" then
|
||||
love.event.quit()
|
||||
end
|
||||
|
||||
if key == "space" then
|
||||
--Change state to GAME!
|
||||
GAMESTATE = "GAME"
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,2 @@
|
||||
function UpdateMenu(dt)
|
||||
end
|
||||
Reference in New Issue
Block a user