You may want to consider using classes to make it simplier, basically you'll need to store a state of the bullet every frame - each bullet having their own position, angle/direction, speed. So you'd add a new bullet class to your array when firing, loop through a fucntion in the bullet every frame to move it and then draw it.