Scratching an itch I've had for years to make a game for tablet. I don't know how far I'll get but I'm going to keep a journal here.


16th Dec 2021

Having doubts about matter.js, in that it's easy to drag bodies through each other. The solution seems to be just making walls thicker but that's not going to work. It looks like this issue has been going for 7 years or so. I think i'll try looking into planck.js instead

https://github.com/liabru/matter-js/issues/5

https://github.com/shakiba/planck.js


15th Dec 2021

I found time last night to wrap my head around matter.js. The documentation is a little cryptic and the coordinate system is tricky as every object's coordinates are based on the centre of its mass. Makes sense really, but a little tricky to position things. I made a simple game to get my head around some things: using static bodies and sensors. This just uses an internal rendering engine.

A quick game I built to understand Bodies and Sensors in matter.js

A quick game I built to understand Bodies and Sensors in matter.js


13th Dec 2021

While I have a little thinking time over Christmas I’ve decided to direct some attention to making a game for my kids. Probably on iPad and more of a fun physics toy than a game, who knows yet.

I want to revisit matter.js as I’ve tried and failed to make a game in it before. I’ll probably use pixi.js as a renderer and do all the logic in Vue/Nuxt

I was thinking something simple yet stylish... as cool as Metamorphabet but not a design system approach rather than crafting illustrations or animations

Links

Matter.js

Matter.js Demo · code by @liabru

Planck.js2D JavaScript Physics Engine

LiquidFun