From 73182e90b956d7e1899e2ca89d5370b588e07679 Mon Sep 17 00:00:00 2001 From: Yadciel Date: Thu, 11 May 2023 17:35:29 +0200 Subject: [PATCH] _ --- game.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/game.py b/game.py index e895bcd..521b2de 100644 --- a/game.py +++ b/game.py @@ -28,7 +28,6 @@ def start(): white = (255, 255, 255) blue = (0, 0, 255) - while True: for event in pygame.event.get(): if event.type == pygame.QUIT: @@ -101,10 +100,13 @@ def start(): # debug ausgabe # --------------------------- if debug: - debug_selfrect = font.render('self centerx: ' + str(player1.rect.centerx) + ' self centery: ' + str(player1.rect.centery), True, white) + debug_selfrect = font.render( + 'self centerx: ' + str(player1.rect.centerx) + ' self centery: ' + str(player1.rect.centery), True, + white) win.blit(debug_selfrect, (20, 60)) - debug_selfrect = font.render('dest x: ' + str(player1.dest_x) + ' dest y: ' + str(player1.dest_y), True, white) + debug_selfrect = font.render('dest x: ' + str(player1.dest_x) + ' dest y: ' + str(player1.dest_y), True, + white) win.blit(debug_selfrect, (20, 80)) # --------------------------- # ----------------------------------------