#STEP phase cx.step() for enem in enems: enem.step() for bul in enemBuls: bul.step() for coin in coins: coin.step() coin.ship=nave nave.step(pygame.mouse.get_pos()) bg.step() #COLLISION phase for bullet in bullets: bullet.step() hitEnems=pygame.sprite.spritecollide(bullet,enems,False) for enem in hitEnems: enem.hit(bullet.dam) bullet.kill() break hitEnems=pygame.sprite.spritecollide(nave,enems,False) for enem in hitEnems: nave.hit(enem.fisDam)