making menu and subfolders

This commit is contained in:
Simon Kellet
2024-07-14 20:56:04 +01:00
parent a3f90645fd
commit 99f0323635
13 changed files with 1152 additions and 32 deletions
+10
View File
@@ -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
+10
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
function UpdateMenu(dt)
end