Python problems with game
问题 I'm really close to getting my game done, just add the bullets and destroy enemies when they are shot, however, when I run python, the program complains with this error "\Dodger.py", line 180, in bullets.remove(bullet) NameError: name 'bullet' is not defined." I know what an undefined error is but I don't know what kind of definition should I add to get the program to work, Here's the code: import pygame, random, sys from pygame.locals import * TEXTCOLOR = (0, 0, 0) FPS = 60 BADDIEMINSIZE = 8