Advertisement
xerpi

Untitled

Mar 13th, 2011
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. --Colors
  2. black = color.new(0,0,0,255)
  3.  
  4. --Loading images
  5. menu = {}
  6. menu[1] = image.load("Images/Menu1.png")
  7. menu[2] = image.load("Images/Menu2.png")
  8. menu[3] = image.load("Images/Menu3.png")
  9.  
  10. options = 3
  11.  
  12. mActual = 1
  13.  
  14. while true do
  15. controls.read()
  16.  
  17. image.blit(0,0,menu[mActual])
  18.  
  19. if controls.press("up") and mActual > 1 then
  20. mActual = mActual - 1
  21. end
  22. if controls.press("down") and mActual < options then
  23. mActual = mActual + 1
  24. end
  25.  
  26. if controls.press("cross") and mActual == 1 then
  27. dofile("menuselect.lua")
  28. end
  29.  
  30.  
  31. if controls.press("cross") and mActual == 2 then
  32. os.message("Wait to the next Version. Thx. ..::Drunk The Waitress::.. Game By Deinous. Credits",0)
  33. end
  34.  
  35.  
  36. if controls.press("cross") and mActual == 3 then
  37. os.quit()
  38. end
  39.  
  40. screen.flip()
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement