A helper library for creating destructible 2D terrain complete with collision checks and examples.

Article by Richard Davey. Posted on 26th Apr 2019.   @photonstorm

image

An open source Phaser implementation of a destructible terrain helper library for 2D games. Using a quad-tree algorithm, TypeScript and Phaser 3. Download from GitHub to see in action.

Features:

  • Support draw / erase with circles, triangles, rectangles, lines.
  • Destructible objects base class, allow extends, support draw / erase with another destructible object.
  • Support collision check with static or moving points, lines.
  • Examples.

Read More