Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 113153d

Browse files
committed
stuff
1 parent 0fa2c89 commit 113153d

File tree

3 files changed

+55
-18
lines changed

3 files changed

+55
-18
lines changed

VAIIYA terminal.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
2-
import time
1+
import time # basic tool imports here used a lot
32
import os
3+
import sys
4+
import random
5+
import prompt_toolkit
46
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)
79
from prompt_toolkit.shortcuts import message_dialog
810
from prompt_toolkit.shortcuts import yes_no_dialog
911
from prompt_toolkit.shortcuts import input_dialog
10-
import time
11-
import bcrypt
12+
import bcrypt # bcrypt is used for the password thingys
1213
from datetime import datetime
1314
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+
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.
3737
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")
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():
685683
game_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

new_loading_part_thingy_test.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import time
2+
import os
3+
import sys
4+
import random
5+
6+
def print_random():
7+
func.anything()
8+
9+
10+
class print_animated():
11+
def print(text, delay):
12+
for i in text:
13+
print(end = i)
14+
time.sleep(delay)
15+
print(print(text, delay))
16+
17+
class func():
18+
import time, sys
19+
20+
def anything(str):
21+
for letter in str:
22+
sys.stdout.write(letter)
23+
sys.stdout.flush()
24+
time.sleep(0.1)
25+
26+
anything("You have woken up in a mysterious maze")
27+
28+
anything("The building has five levels")
29+
30+
anything("Scans show that the floors increase in size as you go down")
31+
32+
33+
def testthing():
34+
print_random()
35+
36+
while True:
37+
pass
38+
#this will run the game after it finishes loading
39+
testthing()

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
bcrypt==4.2.1
2-
prompt_toolkit==3.0.48
3-
wcwidth==0.2.13
1+
bcrypt>=4.2.1
2+
prompt_toolkit>=3.0.48
3+
wcwidth>=0.2.13

0 commit comments

Comments
 (0)