Adaptive difficulty
Adaptive difficulty can be a content generation solution by having enemies carry improved equipment or changing enemy properties such as color and textures. It can also be an Artificial Intelligence question. This is similar to choosing the hard mode at the beginning of a game except, you, the game creator, determine when to engage the hard mode based on some gameplay aspect.
We have already done things such as swapping sprites and changing colors based on strength, so we will be exploring the AI route. We will determine what it takes to adapt the difficulty to the player by changing the AI of the enemy. Eventually, the player will become so strong that one hit from the player will destroy an enemy. So, we want the enemies to be capable of overwhelming the player by getting to the player faster, more efficiently, and in greater numbers.
In order to do this, we will need to adjust the AI capabilities in the Enemy
class. But first, we will set-up the flags that will determine...