Search code examples
javascriptcollisiongame-physicsphaser-framework

Creating collision shapes for Phaser


I've been trying to create collision shapes out of a PNG file for Phaser in JSON format. PhysicsEditor is the only application I know. Unfortunately, OpenGL 2.0 is not supported by my graphics card(drivers are up to date). Are the any alternative programs or ways to make create these collision shapes?


Solution

  • You can use matter.js or PhysicsJS. Both of these tools have methods which can help you to build a world with shapes and catch collisions. You can extend this frameworks with custom renderers