Added colors to text

This commit is contained in:
mollusk 2017-08-15 06:31:59 -07:00
parent 9ba14b981e
commit 3d0bfe0eb0

View File

@ -13,16 +13,16 @@ include("../lib/functions.jl")
function main() function main()
print("-----------------------------------\n") printc(:light_cyan, "-----------------------------------\n")
print("| The Quest for Sun Drop |\n") printc(:light_cyan, "| The Quest for Sun Drop |\n")
print(" ----------------------------------\n") printc(:light_cyan, " ----------------------------------\n")
print("By: Justin and Lindsay\n\n") printc(:green, "By: Justin and Lindsay\n\n")
print(intro_text, "\n") printc(:light_yellow, intro_text, "\n\n")
print("Here are your options. \n\n") printc(:light_magenta,"\nHere are your options. \n\n")
print("Option 1 - Go back to sleep. \n") printc(:light_green, "Option 1 - Go back to sleep. \n")
print("Option 2 - Check the fridge. \n\n") printc(:light_green, "Option 2 - Check the fridge. \n\n")
choice = input("\n Choose an option by pressing its number: ") choice = input("\nChoose an option by pressing it's number: ")
if choice == "1" if choice == "1"
print(intro_option1outcome_text, "\n") print(intro_option1outcome_text, "\n")
@ -34,13 +34,13 @@ function main()
exit() exit()
end end
print("Here are your options. \n\n") printc(:light_yellow, "\nHere are your options. \n\n")
print("Option 1 - Drink the 40 oz King Cobra. \n") printc(:light_green, "Option 1 - Drink the 40 oz King Cobra. \n")
print("Option 2 - Drink the 2 liter bottle of Sun Drop. \n") printc(:light_green, "Option 2 - Drink the 2 liter bottle of Sun Drop. \n")
print("Option 3 - Drink the purple drink in order to indulge your desire to have printc(:light_green, "Option 3 - Drink the purple drink in order to indulge your desire to have
your Dave Chappelle moment. \n\n") your Dave Chappelle moment. \n\n")
choice = input("\n Choose an option by pressing its number: ") choice = input("\nChoose an option by pressing its number: ")
if choice == "1" if choice == "1"
print(fridge_option1outcome_text, "\n") print(fridge_option1outcome_text, "\n")
@ -57,9 +57,9 @@ function main()
exit() exit()
end end
print("Here are your options. \n \n") printc(:light_yellow, "Here are your options. \n \n")
print("Option 1 - Go to your local Safeway. \n") printc(:light_green, "Option 1 - Go to your local Safeway. \n")
print("Option 2 - Go to the closest gas station. \n") printc(:light_green, "Option 2 - Go to the closest gas station. \n")
choice = input("\n Choose an option by pressing its number: ") choice = input("\n Choose an option by pressing its number: ")
if choice == "1" if choice == "1"
@ -75,9 +75,9 @@ function main()
print(wrong_key_error) print(wrong_key_error)
end end
print("Here are your options. \n\n") printc(:light_yellow, "Here are your options. \n\n")
print("Option 1 - Attempt to hitch a ride with a trucker. \n") printc(:light_green, "Option 1 - Attempt to hitch a ride with a trucker. \n")
print("Option 2 - Purchase a plane ticket to Polaski, Tennessee. \n") printc(:light_green, "Option 2 - Purchase a plane ticket to Polaski, Tennessee. \n")
choice = input("\n Choose an option by pressing its number: ") choice = input("\n Choose an option by pressing its number: ")
if choice == "1" if choice == "1"