Chapter 4Project: Moving Avatars

When you’re done with this chapter, you will

  • Know how to move the avatar with your keyboard

  • Begin to understand JavaScript events

  • Be able to move the camera with an avatar

In Chapter 3, Project: Making an Avatar, we covered how to build a game avatar. An avatar that we cannot move is pretty dull. So in this chapter you’ll learn how to make the avatar move in different directions. We’ll also give it a little forest to move around in. It will end up looking something like this:

images/moving_players/when_you_are_done.png

Get 3D Game Programming for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.