This repository comprises the source code for my comprehensive tutorial series.
We delve in-depth to create a jigsaw puzzle game using C# in Unity, starting from the math of Bézier curves to full game logic.
The tutorial is divided into four broad sections. You can read the written version of this tutorial on Faramira or follow the specific branches in this repository.
| Section 1: Implement Bézier Curve using C# | Section 2: Create a Jigsaw Tile from Image |
|---|---|
Learn how to implement the Bézier curve using C# in Unity and create a sample application to display it. 📖 Read Tutorial Part 1 📂 View Branch: tutorial-01 |
We move from lines to shapes. Learn how to use the curve to cut a Jigsaw tile from an existing image. 📖 Read Tutorial Part 2 📂 View Branch: tutorial-02 ![]() |
| Section 3: Create a Jigsaw Board | Section 4: Create the Jigsaw Game |
Scaling up the logic. Learn how to generate a full board of interlocking tiles from a single image. 📖 Read Tutorial Part 3 📂 View Branch: tutorial-03 ![]() |
The final polish. We implement game logic, shuffling, snapping, and win conditions. 📖 Read Tutorial Part 4 📂 View Branch: tutorial-04 ![]() |

