screen.fill(BACKGROUND_COLOR) ram_aras.update() end_aras.update() ram_aras.draw() ship.update(ship_events) ship_events = [] ship.draw() for zerg in swarm: zerg.update() zerg.draw() if pygame.sprite.collide_rect(ship, zerg) and ship.active == True and zerg.active == True: ship.death() game_over = True for shot in ship.lasers: if pygame.sprite.collide_rect(shot,zerg) and zerg.active == True: score+=100 ship.lasers.remove(shot) zerg.death() cur_enemies-=1 screen.blit(text, SCORE_LOCATION) counter +=1 pygame.display.update() pygame.display.flip()