2011-05-18 22:07:47 +00:00
|
|
|
menu_difficulties = {"normal","hard","oh god!"}
|
|
|
|
|
|
|
|
function updateMenu(dt)
|
|
|
|
updateTerrain(dt)
|
|
|
|
updateTracks(dt)
|
|
|
|
end
|
|
|
|
|
|
|
|
function drawMenu()
|
|
|
|
drawTerrain()
|
|
|
|
drawTracks()
|
|
|
|
|
|
|
|
if submenu == 0 then
|
|
|
|
love.graphics.draw(imgSplash,86,0)
|
|
|
|
elseif submenu == 1 then
|
|
|
|
elseif submenu == 2 then
|
2015-08-19 23:48:29 +00:00
|
|
|
love.graphics.printf("select difficulty",0,22,WIDTH,"center")
|
2011-05-18 22:07:47 +00:00
|
|
|
if selection > 2 then selection = 0
|
|
|
|
elseif selection < 0 then selection = 2 end
|
|
|
|
|
|
|
|
for i = 0,2 do
|
|
|
|
if i == selection then
|
2015-08-19 23:48:29 +00:00
|
|
|
love.graphics.printf("* "..menu_difficulties[i+1].." *",0,42+i*13,WIDTH,"center")
|
2011-05-18 22:07:47 +00:00
|
|
|
else
|
2015-08-19 23:48:29 +00:00
|
|
|
love.graphics.printf(menu_difficulties[i+1],0,42+i*13,WIDTH,"center")
|
2011-05-18 22:07:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|