Advertisement
xerpi

Untitled

Apr 9th, 2011
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.38 KB | None | 0 0
  1. --Menu Principal de TDBD--
  2. --Versión 3 Final--
  3. opcionactual = 1
  4. fondox = 0
  5. letrerox = 141
  6. mensaje1x = 0
  7. icono1x = 92
  8. icono2x = 240
  9. icono3x = 386
  10.  
  11. sentido = "aparecer"
  12. a=0
  13.  
  14. image.center(resplandor1)
  15. image.center(resplandor2)
  16. image.center(resplandor3)
  17. image.center(icono1)
  18. image.center(icono2)
  19. image.center(icono3)
  20. while true do
  21. controls.read()
  22. image.blit(fondox,0,fondo)
  23. image.blit(letrerox,9,letrero)
  24. image.blit(mensaje1x,226,mensaje1)
  25. image.blit(icono1x,155,icono1)
  26. image.blit(icono2x,155,icono2)
  27. image.blit(icono3x,155,icono3)
  28. if opcionactual == 1 then
  29. image.blend(icono1x,154,resplandor1,a)
  30. end
  31. if controls.press("right") then
  32. opcionactual = opcionactual +1
  33. end
  34. if controls.press("left") then
  35. opcionactual = opcionactual -1
  36. end
  37. --if controls.press("cross") and opcionactual == 1 then
  38. -----------------------------------------------------
  39. --end
  40. --if controls.press("cross") and opcionactual == 2 then
  41. -----------------------------------------------------
  42. --end
  43. --if controls.press("cross") and opcionactual == 3 then
  44. -----------------------------------------------------
  45. --end
  46. if sentido =="aparecer" then a=a+1 end
  47. if sentido =="desaparecer" then a=a-1 end
  48.  
  49. if a<=0 then sentido = "aparecer" end
  50. if a>=255 then sentido = "desaparecer" end
  51.  
  52.  
  53. if opcionactual <=0 then
  54. opcionactual = 3
  55. end
  56. if opcionactual >=4 then
  57. opcionactual = 1
  58. end
  59. screen.flip()
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement