From 1d922b846c66465156598b02e66615fe16252e4e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 9 May 2015 22:49:23 +0100 Subject: [PATCH] Removed bad code --- game.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game.py b/game.py index 387b97f..5e1b830 100644 --- a/game.py +++ b/game.py @@ -58,8 +58,6 @@ def generate_targets(player): if group[index].type != "SHOOTER": group[index].type == "SHOOTER" changed = True - else: - group[randint(0, len(group)-1)].type == "NORMAL" return group @@ -76,11 +74,11 @@ def play(window): bullet_group = pygame.sprite.Group() clock = pygame.time.Clock() - PLAYING_GAME = True target_movement_timeout_default = FPS * 0.5 target_movement_timeout = target_movement_timeout_default logging.info("Game Started.") + PLAYING_GAME = True while PLAYING_GAME: window.fill((0,0,0))