Right now, we do not have anything in our game for an AI to steer around. We need to add some obstacles that can get in the way of our enemy ship. We want our enemy ship to do what it can to avoid these obstacles while attempting to approach and attack our player's spaceship. The first thing we will add is a big star right in the middle of our gameplay area. We can animate this star and add some nice particle effects for the star's corona. In the last section, we created the class definition of this star in the game.hpp file and it looked like this:
class Star : public Collider {
public:
SDL_Texture *m_SpriteTexture;
SDL_Rect m_src = {.x = 0, .y = 0, .w = 64, .h = 64 };
SDL_Rect m_dest = {.x = 0, .y = 0, .w = 64, .h = 64 };
std::vector<Emitter*> m_FlareList;
Uint32 m_CurrentFrame = 0;
int...