Matter.js – The Basics for Developing Games

Matter.js demo

What is Matter.js Matter.js is a JavaScript physics engine based on the popular box2d physic engine wrote in c++. It allows the programmer to make objects that act more realistically. With the Matter.js engine, you can create games that have realistic falling objects, explosion effects, composite objects, react to certain events etc. A basic example […]

Explosions in Libgdx with Box2d

Block Breaker Gameplay Image Lazer Firing

In a game I’m developing I wanted to have some realistic explosion effects. At first, I thought I would just apply an impulse to all objects within range of the explosion. However, this created unrealistic movement in the affected objects and the objects didn’t rotate. I tried using ray casts to set points to apply the forces […]