i am making a 2d side scroller and have got the enemy's and the player and the controls all working but i am trying to make a array of my ammo class for the enemy class to use, i have made 10 separate enemy's and i made 10 separate ammo for the player class to use but i am sure there is a easier way to do this then make 50 sprites of the ammo class and test each one when i am checking for one that has not been fired yet and keeping track of each individual ammo sprite.
any advice or pointers to form similar to this would be very much appreciated!