Premium Features

Download Video

Move Player Through Map on Keydown

Published 4 months 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

Cheat Sheet Preview

Download The Official Chris Courses HTML5 Canvas Cheat Sheet

Essential canvas syntax at your fingertips.

Download Now

Providing the lift to launch your development career

© 2022 Chris Courses. All rights reserved.