Hittest using the distance formula
- 1 Min. Read.
Sometimes using a built-in hittest functionality isn’t sufficient for checking if 2 objects collide. In these cases the distance formula will come in handy.
Sometimes using a built-in hittest functionality isn’t sufficient for checking if 2 objects collide. In these cases the distance formula will come in handy.
Inheritance in Javascript can be a bit confusing if you come from a class-based language (C++ for example).
I recently found myself in a situation where I had to display a list of all available emoji on the screen, but Apple forgot to provide a documented way of doing this.
In a recent project, I made use of Javascript Sourcemaps. Unfortunately, Chrome decided not to play along nicely by caching the maps, resulting in many headaches while debugging.
Groups are one of the most powerful features of PhaserJS, let’s take a look at how they work, by creating a small spaceship shooter example.
Recent topics