Premium Features

Download Video

Player-To-Map-Boundary Collisions

Published 4 months ago

To prevent our character from traveling off the map, we must export the collision blocks we placed within tiled. Here we'll learn how to do exactly that, then parse the exported collision block data into a 2D array so we can create canvas rectangles off of it. Finally we'll learn how to stop our player from moving whenever we're about to collide with a block.


Want to participate?

Create a free Chris Courses account to begin


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.