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

3 Likes

9 months ago lol , thats about when i was starting on ‘zone 2’

i used the standard layer from tilEd where layer1 has collidable objects(tiles actually) but it moves strictly by tile, in essence it all happens serverside and the client only plays the animation
(in a manner you can’t for instance ragequit b/c you’d be already dead by the time the animation start playing)

… was the idea … im gonna bookmark this anyway, might come in handy for a 'realtime game, thanks