Skip to content

Commit 217703f

Browse files
Create launcher.py
1 parent 98f1138 commit 217703f

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

v1.0/launcher.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import time, os, random
2+
from mrmine_main import mrmine_start_game
3+
from colorama import Fore as color
4+
5+
print("""
6+
Enter the ID for the game you would like to play.
7+
1. Mr. Mine [WIP]""")
8+
game=input(" > ")
9+
try:
10+
game=int(game)
11+
except Exception:
12+
print("Invalid ID.")
13+
exit()
14+
if game==1:
15+
print("Starting Mr. Mine...")
16+
time.sleep(0.5)
17+
print("Loading Game...")
18+
time.sleep(random.uniform(0.5, 1.5))
19+
os.system('clear')
20+
i=0
21+
d1=random.randint(-3, 3)
22+
d2=random.randint(-3, 3)
23+
d3=random.randint(-3, 3)
24+
while i<=100:
25+
print("="*102)
26+
print("|"+color.GREEN+"█"*i+color.WHITE+"█"*(100-i)+"|")
27+
print("|"+color.GREEN+"█"*i+color.WHITE+"█"*(100-i)+"|")
28+
print("|"+color.GREEN+"█"*i+color.WHITE+"█"*(100-i)+"|","("+str(i)+"%)")
29+
print("="*102)
30+
if i<=15+d1:
31+
print(color.WHITE+"Loading Launcher...")
32+
elif i<=50+d2:
33+
print(color.WHITE+"Initializing Game...")
34+
elif i<=80+d3:
35+
print(color.WHITE+"Loading GUI...")
36+
elif i<100:
37+
print("Loading Scripts...")
38+
elif i==100:
39+
break
40+
time.sleep(random.uniform(0.1, 0.3))
41+
os.system('clear')
42+
i+=1
43+
print(color.WHITE+"Loading Complete!")
44+
time.sleep(2)
45+
print(color.WHITE+"Welcome to Mr. Mine!")
46+
time.sleep(1)
47+
os.system('clear')
48+
mrmine_start_game()

0 commit comments

Comments
 (0)