Reusing the code to make a different game and building a design mode
On a few occasions, we have already discussed  the possibility that this system we have coded can be reused to make a totally different game. I just thought it was worth giving this fact a full hearing.
The way that you would make a different game is as follows. I have already mentioned that you could code the appearance of game objects into new components that derive from the GraphicsComponent
class and that you could code new behaviors into classes that derive from the UpdateComponent
class.
Suppose you wanted a set of game objects that had overlapping behaviors; consider perhaps a 2D game where the enemy hunted the player and then shot at the player at a certain distance.
Maybe you could have an enemy type that got close to the player and fired a pistol at the player and an enemy type that took long distance shots at the player, like a sniper might.
You could code an EnemyShooterUpdateComponent...