Aug-07-2020, 09:56 PM
Your code is all over the place and hard to dissect. It is much easier to have a 1) Bullet class 2) use pygame rects for coordinates 3) and arbitrary surfaces so that we dont have to have the resources to run the program. Then you can have a bullets list of Bullet objects in the Player class to contain all the bullets and their respective coordinates. In this tutorial i do just that.
Recommended Tutorials: