When you’re done with this chapter, you will

  • Be able to control things with your keyboard
  • Understand how to attach cameras so they move along with the avatar
  • Have your first experience with JavaScript events, which are crazy important and quite weird!

Chapter 4Project: Moving Avatars

In Chapter 3, ​Project: Making an Avatar​, we covered how to build a game avatar. But an avatar that can’t move is pretty dull. So in this chapter we’re going to learn how to make the avatar move around the scene. We’ll also give it a little forest to play in. It will end up looking something like this:

images/moving_players/when_you_are_done.png

Seriously, you’re gonna feel like you have super ...

Get 3D Game Programming for Kids, 2nd Edition 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.