33 lines
850 B
Lua
33 lines
850 B
Lua
startmenu=true
|
|
play={}
|
|
play.w=love.graphics.getWidth()/1.25
|
|
play.h=love.graphics.getHeight()/20
|
|
play.x=love.graphics.getWidth()/2-play.w/2
|
|
play.y=love.graphics.getHeight()/4-play.h/2
|
|
play.color={211, 215, 123}
|
|
play.mouse=function()
|
|
if love.mouse.getX()>play.x and
|
|
love.mouse.getX()<play.x+play.w and
|
|
love.mouse.getY()>play.y and
|
|
love.mouse.getY()<play.y+play.h then
|
|
return true
|
|
end
|
|
return false
|
|
end
|
|
quit={}
|
|
quit.w=love.graphics.getWidth()/1.25
|
|
quit.h=love.graphics.getHeight()/20
|
|
quit.x=love.graphics.getWidth()/2-quit.w/2
|
|
quit.y=play.y+love.graphics.getHeight()/2
|
|
quit.color={211, 215, 123}
|
|
quit.cooldown=0
|
|
quit.mouse=function()
|
|
if love.mouse.getX()>quit.x and
|
|
love.mouse.getX()<quit.x+quit.w and
|
|
love.mouse.getY()>quit.y and
|
|
love.mouse.getY()<quit.y+quit.h then
|
|
return true
|
|
end
|
|
return false
|
|
end
|
|
pausemenu=false |