Programming Project part 6

The game now spawns a random missile and draws it out all the way down, instead of just having one small object moving down. The problem now is that the vector that contains the old positions gets completely crushed by the amount of positions saved; after the second missile restarts and tries to clear the vector there are more than 500 objects inside the vector, the deletionloop only removes a bit more than half of them for some reason and i will either have to find a more efficient solution(the game lags like hell right now)

Update: Missiles now work without lagging the game down, i changed to just having a SDL_RenderDrawLine instead of 200 objects being drawn out. Cities are now being drawn and the collisionmanager is underway, some changes were made to support replaying without having to start everything over, I’m also considering making the Paused-state functional but it is not a priority right now.
Update 2: Collision between the explosions and the missiles are done, with a small margin for error that should not interfere with the gameplay due to the nature of the game (expanding explosion that triggers collision along its border). I also started work on the Missile vs City collisions, which is basically just comparing one points coordinates with the rectangular collider from a city.