06.overview-of-the-robot-code

Overview of the robot’s code

In this video, we import the start project and look at the provided playable character’s code.

You’ll notice how our character reuses techniques you’ve learned before:

It also uses a character skin as in the platformer series. The character’s visuals are separate from the main body so that you could easily replace it with another one.

It also keeps the code short and focused in each of the two scripts.

We also prepared a dummy enemy and the bullets you will build upon in the next lessons.

In this project, we want to train you to read other developers’ code and learn to work with it.

You will have to do that in your projects moving forward, be it with your old code that you forgot, or with code examples from the web.

As mentioned at the start of the series, we don’t want to show you all the steps to write the code.

Instead, we give you an overview to understand the general structure and why we wrote the code in a certain way. You can learn more by reading each script we look at in the videos, which we highly recommend.

Then, you will code new game mechanics: first with a little bit of guidance from us, and then on your own.

In the next video, we will look at the camera’s code.