From bd1e580b183958a38dcdcaf8fa048762fd6f1529 Mon Sep 17 00:00:00 2001 From: gopala030 Date: Thu, 30 May 2019 15:51:33 +0530 Subject: [PATCH] integrated game with cv object detection --- game_test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/game_test.py b/game_test.py index 0246d20..8f2b02d 100644 --- a/game_test.py +++ b/game_test.py @@ -75,8 +75,8 @@ def draw(self, win): def redrawGameWindow(): win.blit(bg, (0, 0)) Player_ship.draw(win) - #text = font.render('Score: ' + str(score), 1, (204, 239, 240)) - #win.blit(text, (690, 10)) + text = pygame.font.SysFont('comicsans', 30, True, True).render('Score: ' + str(score), 1, (204, 239, 240)) + win.blit(text, (690, 10)) for bullet in bullets: bullet.draw(win) @@ -87,7 +87,6 @@ def redrawGameWindow(): # main_loop -font = pygame.font.SysFont('comicsans', 30, True) Player_ship = space_ship(0, 607, 100, 63) bullets = [] shoot_loop = 0