[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Shooting an image



Most shooting games today do not use one bullet.  If they did, it really only makes sense to store bullets, and eventually even players into classes so that multiple copies can be made efficiently.  Even if you don't think you will not need multiple bullets later, it is a good idea to store the bullet's attributes in a class for easy reference and easy changes.  I like to think of providing such utility as delimiting possibility.
Ian