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:
parent
f68115733e
commit
e9da50897f
6 changed files with 123 additions and 11 deletions
10
scripts/inputs.lua
Normal file
10
scripts/inputs.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue