Advertisement
xerpi

Untitled

Apr 30th, 2011
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. --Color
  2. black = color.new(0,0,0,255)
  3. --Loading images
  4. pausa = {}
  5. pausa[1] = image.load("./Images/pausa1.png")
  6. pausa[2] = image.load("./Images/pausa2.png")
  7.  
  8. options = 2
  9.  
  10. mActual = 1
  11.  
  12.  
  13. twosfont1 = font.load("./Fonts/twosfontname.pgf");
  14.  
  15. while true do
  16. controls.read()
  17.  
  18. image.blit(0,0,pausa[mActual])
  19. screen.print(twosfont1,140,93,"Continuar",0.7,black,0x0)
  20. screen.print(twosfont1,140,147,"Salir al menu",0.7,black,0x0)
  21.  
  22. if controls.press("up") and mActual > 1 then
  23. mActual = mActual - 1
  24. end
  25. if controls.press("down") and mActual < options then
  26. mActual = mActual + 1
  27. end
  28.  
  29. if controls.press("cross")  and mActual == 1 then
  30. break
  31. end
  32.  
  33.  
  34. if controls.press("cross") and mActual == 2 then
  35. dofile("./script.lua")
  36. end
  37.  
  38. screen.flip()
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement