Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menu={}
- for i = 1,5 do
- menu[i] = image.load("System/Imagenes/Menu/menu"..i..".png")
- end
- fondo1 = image.load("System/Imagenes/Fondos/pantallawait.png")
- fondo2 = image.load("System/Imagenes/Fondos/pantallacs.png")
- fondo3 = image.load("System/Imagenes/Fondos/creditos.png")
- sonido1 = sound.load("System/Sonidos/nyansong.mp3")
- current = 1
- current2 = 5
- sound.play(sonido1)
- dofile("System/System/splash.lua")
- splash("System/Imagenes/Fondos/pantallawait.png",2000,3)
- while true do
- controls.read()
- menu[current]:blit(0,0)
- if controls.press("up") then
- if current<=1 then current=5 else current = current - 1 end
- elseif controls.press("down") then
- if current >=5 then current = 1 else current = current + 1 end
- end
- if controls.press("cross") then
- if current == 1 then
- os.message("construccion")
- elseif current == 2 then
- os.message("construccion")
- elseif current == 3 then
- while true do
- controls.read()
- tuimagen:blit(0,0)
- if controls.press("cross") or controls.press("circle") then break end
- screen.flip()
- end
- elseif current == 4 then
- os.message("construccion")
- elseif current == 5 then
- os.quit()
- end
- end
- screen.flip()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement