Features of Our Side-Scroller Game
Let's now take some time to lay out the specifics of the game we'll be designing. Many of these features will be implemented in later chapters, but now is a good time to lay out the vision for the project.
Enemy Character
One thing you should have noticed while playing the SuperSideScroller
project is that there is no enemy AI provided to you by default. So, let's discuss the type of enemies we will want to support and how they will work. Our SuperSideScroller
project will support one enemy type.
The enemy will have a basic back-and-forth movement pattern and will not support any attacks; only by colliding with the player Character will they be able to inflict any damage. However, we need to set the two locations to move between for the enemy AI, and next, we will need to decide whether the AI should change locations. Should they constantly move between locations, or should there be a pause before selecting a new location to...