Menu additions and Function

- Menu now has buttons
- Menu buttons will change color when hovered over
- Menu "start" button now changes stage to the Game Test
This commit is contained in:
Hannah-Dagemark 2023-09-04 14:17:48 +02:00
commit e9da50897f
6 changed files with 123 additions and 11 deletions

10
scripts/inputs.lua Normal file
View file

@ -0,0 +1,10 @@
function mouseOver(object)
local mx, my = love.mouse.getPosition()
local time = 0
if mx > object.x and mx < object.x + object.width then
if my > object.y and my < object.y + object.height then
return true
end
end
return false
end