Premium Features

Download Video

Move Player Through Map on Keydown

Published 2 years ago

It's time to begin moving our player through the world we created. Here we'll learn how to use event listeners to push our map around as if our player is actually moving through it.

  • 0:00 - Listen for mousedown event

  • 4:42 - Add animation loop

  • 7:14 - Convert images to classes

  • 14:16 - Move background image over time

  • 23:25 - Override movement on multi-key press

Comments

Want to participate?

Create a free Chris Courses account to begin

Login

No comments yet, be the first to add one

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.