As in movies and games, the location of the place appears on the screen as if it were being typed in live. I want to make a game about shielding a maze in python. At the beginning of the game, he gives background information about the game:
line_1 = "You have woken up in a mysterious maze" line_2 = "The building has 5 levels" line_3 = "Scans show that the floors increase in size as you go down"
Under the variables, I tried to make a for loop for each line like this:
from time import sleep for x in line_1: print (x) sleep(0.1)
The only problem is that it prints one letter per line. The timing of this is fine, but how can I get him to follow the same line?
source share