Grid Physics Plugin

After about a year of hiatus I’ve updated my grid physics plugin. I’m curious if anyone has used it.

The plugin enables smooth tile-based movement. It support collision between bodies, including pushing other bodies with limitations based on strength/mass of bodies, vertical levels such as bridges and turn-based mode. The latest addition is collision callbacks, population of colliding bodies and a method to get all tiles a body is standing on.

lolotest
The player, enemies, hearts and blocks are grid physics bodies in the video above. I turned on the built-in debugger which show the actual position of each body. It’s built on a 8x8 pixel grid with 16x16 sprites (you can mix sprites of any size dividable with grid size)

Repo: https://github.com/nkholski/phaser-grid-physics

2 Likes