File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 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 ()
You can’t perform that action at this time.
0 commit comments