Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. dofile("funciones.lua")
  2.  
  3. --se cargan imagenes
  4. fonstart = image.load("imagenes/fonstart.png")
  5. fon6 = image.load("imagenes/fon6.png")
  6. fonx = image.load("imagenes/fonx.png")
  7. fonc = image.load("imagenes/fonc.png")
  8. font = image.load("imagenes/font.png")
  9. foncu = image.load("imagenes/foncu.png")
  10.  
  11. menu = function()
  12.     fonstart:blit(0,0)
  13.     if controls.press("start") then
  14.         fon6:blit(0,0)
  15.         system.sleep(1000)
  16.         fonx:blit(0,0)
  17.         system.sleep(1000)
  18.         fonc:blit(0,0)
  19.         system.sleep(1000)
  20.         font:blit(0,0)
  21.         system.sleep(1000)
  22.         foncu:blit(0,0)
  23.         system.sleep(1000)
  24.         fon6:blit(0,0)
  25.     end
  26.    
  27.     if controls.press("cross") then
  28.         dofile("funciones.lua")
  29.     end
  30.     if controls.press("circle") then
  31.         menu()
  32.     end
  33.     if controls.press("triangle") then
  34.         menu()
  35.     end
  36.     if controls.press("square") then
  37.         menu()
  38.     end
  39. end
  40.  
  41. while true do
  42.     controls.read()
  43.     menu()
  44.     screen.flip()
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement