I tried to create a clock, but the output seems to be only a variable. May I ask if anyone of you have an idea how I can make the clock appear?
Thank you in advance!
This is my code:
Code: Select all
label start:
call variables
$ GameRunning = True
while GameRunning:
$ Output = WeekDays[Days] + " " + Months[Month] + " " + str(Day+1) + " " + str(Hours) + ":" + str(Minutes) "[Output]"
$ Minutes += 30
if Minutes > 30:
$ Minutes = 0
$ Hours += 1
if Hours > 23:
$ Hours = 0
$ Day += 1
$ Days += 1
if Day > 6:
$ Day = 0
if Days > MonthDays[Month]:
$ Month += 1
$ Days = 0
if Month > 11:
$ Month = 0
return
label variables:
$ WeekDays = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
$ Months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
$ MonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
$ Minutes = 0
$ Hours = 12
$ Days = 0
$ Day = 0