Summary
In this chapter, you've learned how to add, remove, and modify Action Mappings
and Axis Mappings
, which give you some flexibility when determining which keys trigger a specific action or axis, how to listen to them, and how to execute in-game logic when they're pressed and released.
Now that you know how to handle the player's input, you can allow the player to interact with your game and offer the agency that video games are so well known for.
In the next chapter, we'll start making our own game from scratch. It'll be called Dodgeball
and will consist of the player controlling a character trying to run away from enemies that are throwing dodgeballs at it. In that chapter, we will have the opportunity to start learning about many important topics, with a heavy focus on collisions.