1
-
2
- import time
1
+ import time # basic tool imports here used a lot
3
2
import os
3
+ import sys
4
+ import random
5
+ import prompt_toolkit
4
6
from prompt_toolkit .shortcuts import ProgressBar
5
- from prompt_toolkit .formatted_text import HTML
6
- from prompt_toolkit import prompt
7
+ from prompt_toolkit .formatted_text import HTML # really good for colored text
8
+ from prompt_toolkit import prompt #general CMD prompts (NOT THE POPUPS)
7
9
from prompt_toolkit .shortcuts import message_dialog
8
10
from prompt_toolkit .shortcuts import yes_no_dialog
9
11
from prompt_toolkit .shortcuts import input_dialog
10
- import time
11
- import bcrypt
12
+ import bcrypt # bcrypt is used for the password thingys
12
13
from datetime import datetime
13
14
from prompt_toolkit import print_formatted_text , HTML
14
- import random
15
- import tkinter .messagebox
16
- import sys
15
+ import tkinter .messagebox # the windows popup controller
16
+
17
17
#changes the size of the Command prompt so it is easier to read (and that the ASCII doesnt soft wrap)
18
18
#from ctypes import wintypes
19
19
#from ctypes import windll, byref
@@ -35,9 +35,7 @@ def startup_screen_ascii_roll():
35
35
36
36
#if the number is rolled correctly, then this ASCII will play instead of the norm.
37
37
def corrupted_ascii_startup_screen ():
38
- with open ("assets/text_lines/ASCII/startup_corrupted_ASCII_1.txt" ) as f : # The with keyword automatically closes the file when you are done
39
- print (f .read ())
40
- f .close ()
38
+ game .printfile ("assets/text_lines/ASCII/startup_corrupted_ASCII_1.txt" )
41
39
42
40
43
41
@@ -615,7 +613,7 @@ class DEVtools:
615
613
def debug_enabled_reminder ():
616
614
# a simple reminders system that the debug system is turned on
617
615
if DEVsettings .DEBUG_ENABLE () == True :
618
- print_formatted_text (HTML ('<red>THE DEBUG COMMANDLINE IS ENABLED!! </red>' ))
616
+ print_formatted_text (HTML ('<red>DEBUG MODE IS ENABLED</red>' ))
619
617
620
618
if DEVsettings .DEBUG_ENABLE () == False :
621
619
pass
@@ -685,8 +683,8 @@ def game_loop():
685
683
game_loop ()
686
684
687
685
#this func is not required for the operation of the program, so it is disabled.
688
- #if __name__ == "__main__":
689
- # main ()
686
+ # if __name__ == "__main__":
687
+ # game_loop ()
690
688
691
689
692
690
0 commit comments