-
Notifications
You must be signed in to change notification settings - Fork 1
time
Kyuchumimo edited this page Mar 18, 2022
·
7 revisions
time -> ticks elapsed since game start
- ticks : the number of milliseconds elapsed since the game was started
This function returns the number of milliseconds elapsed since the game began execution. Useful for keeping track of time, animating items and triggering events.

#####################################
# time demo
while True:
cls()
#Show rising time
print('Seconds elapsed: ' + str(time()/1000))
#Blink warning
if(time()%500>250):
print('Warning!',0,30)
#After 2 seconds show this message
if(time()>2000):
print('Fugit inreparabile tempus',0,60)
#####################################