Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'alien'
- if alien.platform == "windows" then
- kernel32 = alien.load("kernel32.dll")
- sleep = kernel32.Sleep
- sleep:types{ret="void",abi="stdcall","uint"}
- end
- print("Welcome to the --- Main Menu ---")
- print("Type --- an option ---")
- print("New Game")
- print("Load Game --")
- print("Settings --")
- menuChoice = io.read()
- if menuChoice == 'NewGame' then
- print("Thank you for starting a new game.")
- print("|You have begun your career in a [basement].")
- print("|When you have enough money, you may advance to a new location.")
- print("|_______________________________________________________________")
- while true do
- print("|Develop game? DevelopGame |")
- print("|Research? Research |")
- gameChoice = io.read()
- if gameChoice == 'DevelopGame' then
- --GENRES
- print("Pick from your available genres: ACTION RPG SIM")
- genreChoice = io.read()
- if genreChoice == 'ACTION' then
- genre = "[ACTION]"
- genrel = ACTION
- elseif genreChoice == 'RPG' then
- genre = "[RPG]"
- genrel = RPG
- elseif genreChoice == 'SIM' then
- genre = "[SIM]"
- genrel = SIM
- end
- io.write("You have selected ")
- print(genre)
- money = 5000
- io.write("Deducted [100] dollars for stage 1. ")
- money = money - 100
- io.write(money)
- print(" dollars remaining.")
- --LANGUAGE
- print("Now choose the language your game will be programmed in.")
- print("[Java - 8 months] [Basic - 3 months] Pearl, Ruby, C++, Python, and others coming soon.")
- progLang = io.read()
- if progLang == 'Java' then
- lang = "[JAVA]"
- langl = JAVA
- sleep(8000)
- money = money - 400
- print("Deducted [400] dollars, to learn Java.")
- elseif progLang == 'Basic' then
- lang = "[BASIC]"
- langl = BASIC
- sleep(3000)
- end
- io.write("You have chosen to program your game in the language ")
- print(lang)
- io.write("Deducted [100] dollars for stage 2. ")
- money = money - 100
- io.write(money)
- print(" dollars remaining.")
- print("Starting stage 2 (Preparing Workspace)")
- sleep(5000)
- print("Finsihed stage 2.")
- --TOPIC
- print("Now select your topic: War, Western, Blocks.")
- topicChoice = io.read()
- if topicChoice == 'War' then
- topic = "[War]"
- topicl = WAR
- elseif topicChoice == 'Western' then
- topic = "[Western]"
- topicl = WESTERN
- elseif topicChoice == 'Blocks' then
- topic = "[Blocks]"
- topicl = BLOCKS
- end
- io.write("The topic for your game will be ")
- print(topic)
- io.write("Deducted [300] dollars for stage 3. ")
- money = money - 300
- io.write(money)
- print(" dollars remaining.")
- print("Finally, you can name your game. Type a name.")
- gameName = io.read()
- io.write(gameName)
- print(" has been released to the public, reviews will be in shortly.")
- sleep(5000)
- --REVIEW PROCESS
- if genrel == RPG and langl == BASIC and topicl == WAR then
- review = math.random(2, 5)
- review2 = math.random(2, 5)
- review3 = math.random(2, 3)
- money = money + 300
- print("You have earned a total of $300 dollars from your game. Overall not many people enjoyed the game.")
- elseif genrel == RPG and langl == BASIC and topicl == "WESTERN" then
- review = math.random(7, 9)
- review2 = math.random(4, 9)
- review3 = math.random(5, 8)
- money = money + 400
- print("You have earned a total of $300 dollars from your game. The game recieved mixed reviews.")
- elseif genrel == RPG and langl == BASIC and topicl == BLOCKS then
- review = math.random(1, 2)
- review2 = math.random(1, 3)
- review3 = math.random(1, 3)
- money = money + 100
- print("You have earned a total of $100 dollars from your game. Overall it was disliked by most people.")
- elseif genrel == ACTION and langl == BASIC and topicl == WAR then
- review = math.random(5, 9)
- review2 = math.random(7, 9)
- review3 = math.random(8, 9)
- money = money + 700
- print("You have earned a total of $700 dollars from your game.")
- elseif genrel == ACTION and langl == BASIC and topicl == WESTERN then
- review = math.random(8, 10)
- review2 = math.random(8, 10)
- review3 = math.random(8, 10)
- money = money + 700
- print("You have earned a total of $700 dollars from your game. This is a great combination and was played by many!")
- elseif genrel == ACTION and langl == BASIC and topicl == BLOCKS then
- review = math.random(4, 7)
- review2 = math.random(3, 5)
- review3 = math.random(5, 6)
- money = money + 200
- print("You have earned a total of $400 dollars from your game. Overall it was a decent game.")
- elseif genrel == SIM and langl == BASIC and topicl == WAR then
- review = math.random(6, 9)
- review2 = math.random(6, 9)
- review3 = math.random(6, 9)
- money = money + 400
- print("You have earned a total of 400 dollars from your game. Overall it was a decent game.")
- elseif genrel == SIM and langl == BASIC and topicl == WESTERN then
- review = math.random(6, 9)
- review2 = math.random(6, 9)
- review3 = math.random(6, 9)
- money = money + 400
- print("You have earned a total of 400 dollars from your game. Overall it was an OK game.")
- elseif genrel == SIM and langl == BASIC and topicl == BLOCKS then
- review = math.random(3, 5)
- review2 = math.random(3, 5)
- review3 = math.random(2, 7)
- money = money + 200
- print("You have earned a total of 200 dollars from your game. Overall, there will still people who enjoyed it.")
- --JAVA
- elseif genrel == RPG and langl == JAVA and topicl == WAR then
- review = math.random(5, 8)
- review2 = math.random(5, 7)
- review3 = math.random(7, 9)
- money = money + 450
- print("You have earned a total of 450 dollars from your game. People really enjoyed this game!.")
- elseif genrel == RPG and langl == JAVA and topicl == WESTERN then
- review = math.random(6, 9)
- review2 = math.random(7, 9)
- review3 = math.random(8, 9)
- money = money + 600
- print("You have earned a total of 600 dollars from your game. Overall, there will still people who enjoyed it.")
- elseif genrel == RPG and langl == JAVA and topicl == BLOCKS then
- review = math.random(3, 5)
- review2 = math.random(3, 5)
- review3 = math.random(2, 7)
- money = money + 300
- print("You have earned a total of 300 dollars from your game. Overall, there will still people who enjoyed it, but not too many.")
- elseif genrel == ACTION and langl == JAVA and topicl == WAR then
- review = math.random(7, 9)
- review2 = math.random(7, 9)
- review3 = math.random(7, 10)
- money = money + 1200
- print("You have earned a total of 1200 dollars from your game. People really enjoyed this game!.")
- elseif genrel == ACTION and langl == JAVA and topicl == WESTERN then
- review = math.random(9, 10)
- review2 = math.random(9, 10)
- review3 = math.random(9, 10)
- money = money + 1600
- print("You have earned a total of 1600 dollars from your game. Overall, people loved this game!")
- elseif genrel == ACTION and langl == JAVA and topicl == BLOCKS then
- review = math.random(4, 8)
- review2 = math.random(5, 8)
- review3 = math.random(7, 9)
- money = money + 500
- print("You have earned a total of 500 dollars from your game. Overall, people thought it was a pretty fun game.")
- elseif genrel == SIM and langl == JAVA and topicl == WAR then
- review = math.random(7, 9)
- review2 = math.random(7, 9)
- review3 = math.random(7, 10)
- money = money + 1500
- print("You have earned a total of 1500 dollars from your game. People really enjoyed this game!.")
- elseif genrel == SIM and langl == JAVA and topicl == WESTERN then
- review = math.random(5, 7)
- review2 = math.random(5, 6)
- review3 = math.random(3, 5)
- money = money + 600
- print("You have earned a total of 600 dollars from your game. Overall, people were okay with this game.")
- elseif genrel == SIM and langl == JAVA and topicl == BLOCKS then
- review = math.random(9, 10)
- review2 = math.random(9, 10)
- review3 = math.random(8, 10)
- money = money + 25000
- print("You have earned a total of 25000 dollars from your game. Your game has become one of the most played games on PC today.")
- end
- print(review)
- print(review2)
- print(review3)
- io.write("You now have ")
- io.write(money)
- print(" dollars left.")
- elseif gameChoice == 'Research' then
- print("Function currently missing.")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement