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

  • Game Localization For Food Delivery App

  • HTML5 Games in Guest Room Tablets

  • What’s New in Phaser 3.50

  • Particle and Sprite Editors in Babylon.js 4.2

  • Healthcare Industry HTML5 Games



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

  • GDevelop – Free and Easy HTML5 Game Engine

    If you are looking for a free and easy HTML5 game engine, check out GDevelop. This game creator is designed to be used by everyone, with its no-code, open-source, free, …Read more

  • Phaser 3 Game Object Pools Tutorial

    Memory allocation inside update loops often causes framerate problems in real-time gaming. One of the best solutions to this is to use Object Pools in Phaser 3. An Object Pool …Read more

  • Games During The COVID-19 Pandemic

    There so many effective ways to engage your audience with HTML5 games. Here is an example of how to run a game campaign to keep users motivated during difficult times. …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