- Menu now has buttons - Menu buttons will change color when hovered over - Menu "start" button now changes stage to the Game Test
10 lines
No EOL
277 B
Lua
10 lines
No EOL
277 B
Lua
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 |