lutro-iyfct/menu.lua

29 lines
612 B
Lua
Raw Normal View History

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-03-03 19:27:26 +00:00
love.graphics.print("select difficulty",0,22)
if selection > 2 then selection = 0
elseif selection < 0 then selection = 2 end
for i = 0,2 do
if i == selection then
2015-03-03 19:27:26 +00:00
love.graphics.print("* "..menu_difficulties[i+1].." *",0,42+i*13)
else
2015-03-03 19:27:26 +00:00
love.graphics.print(menu_difficulties[i+1],0,42+i*13)
end
end
end
end