HTML5 Game Development
   
  • HOME
  • News
  • Tutorials
  • Engines
  • Demos
  • Tools
  • Partners
  • Mobile HTML Game
  • Guess The Celebrity
  • 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

  • What’s New in Phaser 3.50

  • Particle and Sprite Editors in Babylon.js 4.2

  • Healthcare Industry HTML5 Games

  • Games for Events Example

  • HTML5 Games for Luxury Brands



NEW DEMOS

  • Vertical Endless Runner Prototype

  • Particle and Sprite Editors in Babylon.js 4.2

  • Song Maker in Google Experiment

  • Phaser 3 Experiment for Drawing Cards

  • HTML5 Game for a Recycling Campaign


ENGINES

  • Building Simulated 3D HTML5 Games With Phaser

    Phaser is commonly used as a 2D game engine for creating HTML5 desktop and mobile games. However, with the help of three.js and Phaser 3D library, you could render your …Read more

  • Egretia Blockchain HTML5 Game Engine

    Egretia is an up and coming HTML5 game development platform that is powered by blockchain. The blockchain technology is like a digital ledger wherein finances or transactions involving value are …Read more

  • Phaser 3.4 Release

    Phaser 3.4 has just been launched, bringing new and better features for HTML5 game development. This updated version now has support for Game Object Containers. Although it’s still in beta …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