-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial.py
More file actions
30 lines (23 loc) · 1.04 KB
/
tutorial.py
File metadata and controls
30 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import subprocess
subprocess.run(["pip", 'install', 'colorama'])
import colorama
import time
import json
subprocess.run(['clear']) # for beauty 1
def typewriter(text, delay=0.1):
for letter in text:
print(letter, end='', flush=True)
time.sleep(delay)
print()
# name
with open('user.json', 'r', encoding='utf-8') as file:
data = json.load(file)
typewriter("Loading tutorial...", 0.09)
typewriter("▁ ▂ ▃ ▄ ▅ ▆ ▇ █ ▇ ▆ ▅ ▄ ▃ ▁", 0.10)
subprocess.run(['clear']) # for beauty 2
typewriter("Okay.. You are " + data['username'] + " right? Okay, we have quick tutorial for you.", 0.10)
typewriter("'HowITWorks' - it's a game about hacking, We do not endorse or promote any illegal activities. The game is made for entertainment purposes.", 0.07)
subprocess.run(['clear']) # for beauty 3
typewriter("I am Erica, your virtual helper in this game, okay let's start!", 0.10)
subprocess.run(['clear']) # for beauty 4
typewriter("In this game you need to complete TASKS that will be sent to you, to view them write 'ntfc'.", 0.10)