HTML5 Game Development
   
  • HOME
  • News
  • Tutorials
  • Engines
  • Demos
  • Tools
  • Partners
  • Mobile HTML Game
  • Wind And Solar
  • About us

Slice Physics Bodies with Matter.js and Phaser

Slicing, splitting, and cutting bodies are common events on game designs. You could build a lot of games with this mechanic.

Slice bodies using a source code created with Phaser, Matter.js, and PolyK’s slice method. The event is performed once you draw a starting point and then an endpoint. Drag the mouse to draw the line and cut an object.

You could also cut multiple objects with this source code.

Check out the rest of the code here.

Share List

You might also find this interesting:


  1. HTML5 Game Development Facebook, Twitter and G+ The official HTML5GameDevelopment.org Facebook page up at: http://www.facebook.com/Html5GameDevelopment The official HTML5GameDevelopment.org Twitter account is at: https://twitter.com/#!/gamedevhtml5 The Google Plus page is up at: https://plus.google.com/b/106608051085232600929/ All are updated automatically via the...

  2. Tiled Physics Phaser 3 Plugin Tiled Physics is a Phaser 3 plugin that helps game developers move around bodies in a tiled map setting. This physics component helps you set up the inertia, force, and...

  3. Phaser Matter Collision Plugin With the Phaser Matter Collision plugin, you can easily manage the behavior of objects in your game when they collide with other objects. When you create the particle collisions via...

  4. GLSL Sandbox A online gallery created by Javi Fontan and Diego Goberna and the WebGL hero MrDoob showcasing various WebGL shaders with their code. Share List...

  5. Box2DJs: a 2D Javascript Physics Engine Box2Djs is a Javsacript port of the Actionscript port of the C++ 2D Physics Engine Box2D. It was ported form the action script using a automated script, so it shares...

cutting, phaser3, source code
Games-4, HTML5 Demos, HTML5 Tools

License HTML5 Games

Are you a company looking to license HTML5 games? We recommend MarketJS.com, a B2B platform for licensing games.

MarketJS has over 300 HTML5 games for licensing. They also provide additional services such as game reskin, custom development, and white label portals.

Html5 Game Development


Follow @GameDevHTML5



WHAT’S NEW

  • Unity’s Pricing Scheme Changes

  • Unity Game Engine Pricing Fee

  • Open-source 3D Game Engine with Sketchfab Integration

  • MODD.IO Updates – Improved No Coding Required Game Engine

  • GPT3 Voting Board



NEW DEMOS

  • Creating a Mobile HTML5 RPG – Guidelines for Beginners

  • How to Use HTML5 Games To Engage Social Media Followers

  • Running HTML5 Games for Online Competitions

  • Vertical Platformer Games Using GDevelop

  • HTML5 Games for HR Technology


ENGINES

  • Unity’s Pricing Scheme Changes

    In an open letter to the Unity community, the company announced the details of Unity’s pricing scheme changes. In the letter, the Personal plan will remain free and there will …Read more

  • Unity Game Engine Pricing Fee

    Early in September 2023, Unity Technologies announced the Unity game engine pricing fee. Starting on 1 January 2024, the company will charge game developers a fee (2 tiers) for each …Read more

  • Open-source 3D Game Engine with Sketchfab Integration

    PlayCanvas, an open-source 3D game engine, has added Sketchfab integration into its latest updates. This improvement gives game developers access to Sketchfab’s high-quality 3D, AR, and VR content. To access …Read more

SEARCH OUR ARCHIVES

CONNECT

rss twitter

HTML5 Game Development is proudly run by 3P Solutions Inc

GOT NEWS?

Send new engines, demos, information and tips to hello@html5gamedevelopment.com

MONTHLY MEETUP

In boston? Join us for the Monthly HTML5 Game Development meetup.

BOOKS

We're in the process of writing a few books about game development. Coming soon!

Copyright HTML5gamedevelopment.com