Closed nczempin closed 12 years ago
player ship uses sprite
shot now uses sprite, too
So this leaves the enemies to use sprites for now.
We need to think about this a little differently, because there's no need to copy each image per individual enemy (they are re-used). Instead, the Enemy class should have a method that returns the image that should currently be drawn (this also makes it easier later to add sprite animations). For now this method can just check the Enemy's type and find the appropriate image from that information.
Enemies are pretty much using sprites; not completely, but the intent of this issue was to get us started using sprites. More issues are to follow.
A prerequisite for animation as well as for pixel-based collision is that we change the representations of player ship, shot(s) and enemies to use the pygame sprite class.