-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitle.rb
54 lines (42 loc) · 1.36 KB
/
title.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
puts "\e[38;2;187;127;118m \e[8;42;107t"
loop do
system("clear")
title_text = File.read("lib/images/title/title2.txt")
puts title_text
print "What would you like to do? [ Play / Beastiary / Language / Laboratory / Quit ] >> "; option = gets.chomp
if option == "Play"
system("ruby rockpaper.rb")
elsif option == "Beastiary"
system("cd lib/beastiary; ruby beastiary.rb")
elsif option == "Language"
print ">> Glossary or translation? >> "; lang_choice = gets.chomp
if lang_choice == "Glossary"
system("ruby study.rb")
elsif lang_choice == "Translate"
system("ruby lib/encyclopedia/translate/translate.rb")
else
puts ">> This language option does not exist."
end
elsif option == "Laboratory"
print "What type of color synthesis? >> "; synthesis_type = gets.chomp
if synthesis_type == "Real"
system("cd lib/laboratory/AutomixREAL; ./routine.sh")
elsif synthesis_type == "Synthetic"
system("cd lib/laboratory/AutomixSYNTH; ./routine.sh")
else
puts ">> There is no such laboratory..."
abort
end
# elsif option == "Medication"
# system("cd lib/medication; ruby medication_promptor.rb")
#
# sleep(1.5)
#puts "\e[38;2;187;127;118m \e[8;42;107t"
elsif option == "Quit"
system("clear")
abort
else
puts "Unregonized command..."
sleep(1.5)
end
end