From 9f6008662ab126c853d760458fb5f7962fa22642 Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Wed, 6 Oct 2021 09:33:55 -0700 Subject: [PATCH] fix timer position --- r3.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/r3.py b/r3.py index ed1d876..f77abb7 100644 --- a/r3.py +++ b/r3.py @@ -30,7 +30,7 @@ else: pygame.display.set_caption('The Red Robot Radio - Virtualx Game Engine') font = pygame.font.Font(None, 30) clock = pygame.time.Clock() - FPS = 6000 + FPS = 60 BLACK = (0, 0, 0) #WHITE = (255, 255, 255) pygame.mixer.music.load('space.ogg') @@ -338,9 +338,9 @@ else: playtime = "%d:%02d:%02d:%03d" % (playhr, playmin, playsec, playmsec) screen.blit(antenna.image, antenna.rect) yourtimetext = font.render(str("Your Time"), True, pygame.Color('white')) - screen.blit(yourtimetext, (450, 500)) + screen.blit(yourtimetext, (350, 400)) yourtime = font.render(str(playtime), True, pygame.Color('white')) - screen.blit(yourtime, (450, 540)) + screen.blit(yourtime, (350, 440)) else: playhr = (int(runtime / 3600000)) playmin = (int(runtime / 60000) - (playhr * 60)) @@ -349,9 +349,9 @@ else: playtime = "%d:%02d:%02d:%03d" % (playhr, playmin, playsec, playmsec) screen.blit(supernova.image, supernova.rect) yourtimetext = font.render(str("Your Time"), True, pygame.Color('white')) - screen.blit(yourtimetext, (450, 500)) + screen.blit(yourtimetext, (350, 400)) yourtime = font.render(str(playtime), True, pygame.Color('white')) - screen.blit(yourtime, (450, 540)) + screen.blit(yourtime, (350, 440)) rfps = font.render(str(int(clock.get_fps())), True, pygame.Color('white')) screen.blit(rfps, (50, 50)) if debug: