1-
2- import time
1+ import time # basic tool imports here used a lot
32import os
3+ import sys
4+ import random
5+ import prompt_toolkit
46from 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)
79from prompt_toolkit .shortcuts import message_dialog
810from prompt_toolkit .shortcuts import yes_no_dialog
911from prompt_toolkit .shortcuts import input_dialog
10- import time
11- import bcrypt
12+ import bcrypt # bcrypt is used for the password thingys
1213from datetime import datetime
1314from 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+
1717#changes the size of the Command prompt so it is easier to read (and that the ASCII doesnt soft wrap)
1818#from ctypes import wintypes
1919#from ctypes import windll, byref
@@ -35,9 +35,7 @@ def startup_screen_ascii_roll():
3535
3636#if the number is rolled correctly, then this ASCII will play instead of the norm.
3737def 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" )
4139
4240
4341
@@ -615,7 +613,7 @@ class DEVtools:
615613 def debug_enabled_reminder ():
616614# a simple reminders system that the debug system is turned on
617615 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>' ))
619617
620618 if DEVsettings .DEBUG_ENABLE () == False :
621619 pass
@@ -685,8 +683,8 @@ def game_loop():
685683game_loop ()
686684
687685#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 ()
690688
691689
692690
0 commit comments