Learn web development with 117+ additional tutorials only at https://chriscourses.com 🚀
Rectangular collision detection is a must-know when it comes to video game development. It's a way to tell when two objects touch, so you can call some sort of reactionary event in return, such as gaining a power-up, or ending the game. Here I'll show you how rectangular collision detection works from a high-level perspective, then walk you through how to implement the effect using HTML canvas and JavaScript.
0:00 - How it works
2:07 - Detection on the x-axis
6:40 - Detection on the y-axis (with x-axis)
On this page of the site you can watch the video online How to Code: Rectangular Collision Detection with JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Chris Courses 16 November 2021, share the link with friends and acquaintances, this video has already been watched 53,573 times on youtube and it was liked by 1.3 thousand viewers. Enjoy your viewing!