From 51ff405e7678e7bc91069dfb8cdabfa6e70db79f Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Fri, 22 Apr 2022 10:38:47 -0700 Subject: [PATCH] automatic stage selection --- r3.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/r3.py b/r3.py index f0c105b..33aef7e 100644 --- a/r3.py +++ b/r3.py @@ -245,7 +245,10 @@ wall1 = Wallh(-100,-200) wall2 = Wallh(2150,-200) wall3 = Wallv(-200,-200) wall4 = Wallv(-200,800) -background = Background('backgrounds/galaxy.png') +if int(datetime.datetime.utcnow().timestamp() % 2) == 1: + background = Background('backgrounds/wormhole.png') +else: + background = Background('backgrounds/galaxy.png') #crash = Crash() #antenna = Antenna() running = True @@ -304,7 +307,10 @@ while running: wall2 = Wallh(2150,-200) wall3 = Wallv(-200,-200) wall4 = Wallv(-200,800) - background = Background('backgrounds/galaxy.png') + if int(datetime.datetime.utcnow().timestamp() % 2) == 1: + background = Background('backgrounds/wormhole.png') + else: + background = Background('backgrounds/galaxy.png') live = True complete = False if music: