instead of recreating the whole bullets array every time a bullet hits the wall, remove it and then after CollideAndMoveBullets go through and clean up the "dead" bullets. Idk how to indicate that a bullet is dead since they can't be null, maybe set their coordinates to a really large number or something.
instead of recreating the whole bullets array every time a bullet hits the wall, remove it and then after CollideAndMoveBullets go through and clean up the "dead" bullets. Idk how to indicate that a bullet is dead since they can't be null, maybe set their coordinates to a really large number or something.