Jan-02-2024, 06:22 PM
I would write Bullet as a subclass of Sprite. When firing a bullet I would add a bullet object to a Group. The bullet group will keep track of all the fired bullets, calling their update methods and removing bullets that collide with another sprite (like a player).