automatic stage selection

This commit is contained in:
Page Asgardius 2022-04-22 10:38:47 -07:00
parent 118fd6b718
commit 51ff405e76

6
r3.py
View file

@ -245,6 +245,9 @@ wall1 = Wallh(-100,-200)
wall2 = Wallh(2150,-200)
wall3 = Wallv(-200,-200)
wall4 = Wallv(-200,800)
if int(datetime.datetime.utcnow().timestamp() % 2) == 1:
background = Background('backgrounds/wormhole.png')
else:
background = Background('backgrounds/galaxy.png')
#crash = Crash()
#antenna = Antenna()
@ -304,6 +307,9 @@ while running:
wall2 = Wallh(2150,-200)
wall3 = Wallv(-200,-200)
wall4 = Wallv(-200,800)
if int(datetime.datetime.utcnow().timestamp() % 2) == 1:
background = Background('backgrounds/wormhole.png')
else:
background = Background('backgrounds/galaxy.png')
live = True
complete = False