Back to Browse

How To Make A JavaScript Platformer - Part 5 1/2 - Tunneling

1.1K views
Apr 12, 2018
13:10

Learn how to fix the broad phase collision detection tunneling glitch using pure HTML5 and JavaScript in this short game design tutorial. I noticed that in part 5 there is a glitch where you can walk through a tile with the player. It's because of tunneling. My tile based collision detection works as intended, but when the player moves too quickly, the tunneling glitch can cause undesired behavior. Check out the working (or not so working) example: https://pothonprogramming.github.io/content/rabbit-trap/rabbit-trap.html?05 Check out the source code here: https://github.com/pothonprogramming/pothonprogramming.github.io/tree/master/content/rabbit-trap/05

Download

0 formats

No download links available.

How To Make A JavaScript Platformer - Part 5 1/2 - Tunneling | NatokHD