Guest User

game

a guest
Dec 3rd, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.43 KB | None | 0 0
  1. local chooseScreen = 1
  2. --
  3. local chapters
  4. --
  5. local allWords
  6. local wordsA = {"dress", "fairy tale", "front row seat", "involve", "magic", "seat", "splendid", "straw", "thought"}
  7. local wordsC = {"direct", "least", "opinion", "shoot"}
  8. local wordsD = {"appear", "classical music", "cover", "evil", "gal", "main character", "pale", "rule", "speciality", "spotlight", "turn back", "universe", "wizard"}
  9. local wordsE = {"near future", "play", "take place"}
  10. local wordsCC = {"crew", "current", "former", "tale", "take up", "unlike", "ventriloquist"}
  11. local wordsF = {"attatch", "a bunch of", "in honour of", "knife", "lose", "mug", "puppet", "slippers", "torch"}
  12. local wordsG = {"argue", "be prepared", "confidence", "impression", "judge", "single", "take"}
  13. local wordsH = {"in advance", "kick off", "ticket sale"}
  14.  
  15. function startScreen()
  16.   while true do
  17.     local event, pressKeyStartScreen = os.pullEvent("key")
  18.     if pressKeyStartScreen == "208" then
  19.       chooseScreen =(chooseScreen+1) % 3
  20.     end    
  21. --  
  22.     if chooseScreen == "1" then
  23.       print("")
  24.       print("                    Engels Spel")
  25.       print("")
  26.       print("")
  27.       print("")
  28.       print("")
  29.       print("")
  30.       print("")
  31.       print("                      >Start<")
  32.       print("")
  33.       print("                       Opties")
  34.       print("")
  35.       print("                       Stop")
  36.       print("")
  37.       print("")
  38.       print("")
  39.       print("")
  40.       print("                           Door Justin van der Leij")
  41.     end
  42. --
  43.     if chooseScreen == "2" then
  44.       print("")
  45.       print("                    Engels Spel")
  46.       print("")
  47.       print("")
  48.       print("")
  49.       print("")
  50.       print("")
  51.       print("")
  52.       print("                       Start")
  53.       print("")
  54.       print("                      >Opties<")
  55.       print("")
  56.       print("                       Stop")
  57.       print("")
  58.       print("")
  59.       print("")
  60.       print("")
  61.       print("                           Door Justin van der Leij")
  62.     end
  63. --
  64.     if chooseScreen == "3" then
  65.       print("")
  66.       print("                    Engels Spel")
  67.       print("")
  68.       print("")
  69.       print("")
  70.       print("")
  71.       print("")
  72.       print("")
  73.       print("                       Start")
  74.       print("")
  75.       print("                       Opties")
  76.       print("")
  77.       print("                      >Stop<")
  78.       print("")
  79.       print("")
  80.       print("")
  81.       print("")
  82.       print("                           Door Justin van der Leij")
  83.     end
  84.   end  
  85. end
  86.  
  87. function getWord()
  88.   if chapters == "1" then
  89.     allWords = math.random(1)
  90.   end
  91.   if chapters == "2" then
  92.     allWords = math.random(2)
  93.   end
  94.   if chapters == "3" then
  95.     allWords = math.random(3)
  96.   end
  97.   if chapters == "4" then
  98.     allWords = math.random(4)
  99.   end
  100.   if chapters == "5" then
  101.     allWords = math.random(8)
  102.   end
  103.   --
  104.   if allWords == 1 then
  105.     print(wordsA[math.random(9)])
  106.   end
  107.   if allWords == 2 then
  108.     print(wordsC[math.random(4)])
  109.   end
  110.   if allWords == 3 then
  111.     print(wordsD[math.random(13)])
  112.   end
  113.   if allWords == 4 then
  114.     print(wordsE[math.random(3)])
  115.   end
  116.   if allWords == 5 then
  117.     print(wordsCC[math.random(7)])
  118.   end
  119.   if allWords == 6 then
  120.     print(wordsF[math.random(9)])
  121.   end
  122.   if allWords == 7 then
  123.     print(wordsG[math.random(7)])
  124.   end  
  125.   if allWords == 8 then  
  126.     print(wordsH[math.random(3)])
  127.   end
  128. end
  129.  
  130. startScreen()
Advertisement
Add Comment
Please, Sign In to add comment