#!/usr/bin/julia #= File name: quest-for-sundrop.jl Author: Jil Studios Date: 2017-06-20 Description: Main game file =# include("../lib/io-extra.jl") include("../lib/story.jl") include("../lib/functions.jl") function main() printc(:light_cyan, "-----------------------------------\n") printc(:light_cyan, "| The Quest for Sun Drop |\n") printc(:light_cyan, " ----------------------------------\n") printc(:green, "By: Justin and Lindsay\n\n") printc(:light_yellow, intro_text, "\n\n") printc(:light_magenta,"\nHere are your options. \n\n") printc(:light_green, "Option 1 - Go back to sleep. \n") printc(:light_green, "Option 2 - Check the fridge. \n\n") choice = input("\nChoose an option by pressing it's number: ") if choice == "1" print(intro_option1outcome_text, "\n") game_end() elseif choice == "2" print(intro_option2outcome_text, "\n") elseif choice == "q" exit() end printc(:light_yellow, "\nHere are your options. \n\n") printc(:light_green, "Option 1 - Drink the 40 oz King Cobra. \n") printc(:light_green, "Option 2 - Drink the 2 liter bottle of Sun Drop. \n") printc(:light_green, "Option 3 - Drink the purple drink in order to indulge your desire to have your Dave Chappelle moment. \n\n") choice = input("\nChoose an option by pressing its number: ") if choice == "1" print(fridge_option1outcome_text, "\n") leavehouse() dui() elseif choice == "2" print(fridge_option2outcome_text), "\n" leavehouse() elseif choice == "3" print(fridge_option3outcome_text, "\n") game_end() elseif choice == "q" exit() end printc(:light_yellow, "Here are your options. \n \n") printc(:light_green, "Option 1 - Go to your local Safeway. \n") printc(:light_green, "Option 2 - Go to the closest gas station. \n") choice = input("\n Choose an option by pressing its number: ") if choice == "1" print(car_option1outcome_text, "\n") game_end() elseif choice == "2" print(car_option2outcome_text, "\n") elseif choice == "q" exit() else print(wrong_key_error) end printc(:light_yellow, "Here are your options. \n\n") printc(:light_green, "Option 1 - Attempt to hitch a ride with a trucker. \n") printc(:light_green, "Option 2 - Purchase a plane ticket to Polaski, Tennessee. \n") choice = input("\n Choose an option by pressing its number: ") if choice == "1" print(tn_option1outcome_text, "\n") elseif choice == "2" print(tn_option2outcome_text, "\n") elseif choice == "q" exit() else print(wrong_key_error) end end main()