VoidShot/scripts/inputs.lua
Hannah-Dagemark e9da50897f 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
2023-09-04 14:17:48 +02:00

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