Creating our Puzzle Pieces

Let's create a few nodes that can be placed in our level as a puzzle pieces. Later we'll destroy these puzzle pieces with the Projectile node we created.

Learning Goals

  • How to pick the right physics node, KinematicBody2D or RigidBody2D
  • Become comfortable with CollisionShape2D, best practices, and traps to avoid
  • The relationship between Texture resources and Sprite nodes

Requirements

  • Puzzle pieces interact with physics realistically
    • Collisions work as expected
    • Gravity is respected
  • Pieces become damaged with collisions
  • After enough damage the pieces will be destroyed
Creating our Puzzle Pieces
Building the Scene
An Outline of the Process
Configure the Circle
Configure the Square
Configure the Tower
Configure the Triangle