In this lesson, you program the player’s basic movement, including the code that limits that movement. Since there are a lot of different ways a player can move, depending on the type of project you’re working on, you will not be given step-by-step instructions on how to do it. In order to do this, you will need to do research, reference other code, and problem-solve when things go wrong. Finally, you will learn about unit testing and start applying unit testing methods to your project.
Project Outcome:
The player will be able to move around based on user input, but not be able to move where they shouldn’t.