Back to PortfolioTop

Poly-Rule


Poly-Rule is a 2D puzzle game developed in Unity. This was a personal project that I worked on-and-off on for a few years. The goal of the game is to clear the polygons off the board of each level. To do this, you need to form complete chains of fully connected polygons. By applying the rule on each polygon, you can spin or flip it.

The game splits the levels into 6 different worlds. Each of the first four worlds introduces a new feature that builds upon features introduced in previous worlds:

  1. Basic mechanics: Polygon types and rules.
  2. Multiple laser colors
  3. Polygon rule connectors
  4. Off-screen polygons

World 5 contains four challenge levels, each based on one of the previous worlds. World 6 is a final goodbye puzzle.

The game has a total of 29 levels. Each level is designed to focus on teaching you a new strategy or capability that you might have not considered. This includes teaching you what potential traps could look like.

Special thanks to my friend, Junhyun Lim, for helping me create a triangular grid system and helping me work through the modular arithmetic necessary to optimize solutions. A big thanks to my friend, Timothy Wang, for creating the music for the game as well.

The rest of the project was made by me. My work included:

  • Programming: All game mechanics, saving, and UI in using Unity.
    • Programming: Polygons that are procedurally created in runtime to snap to a triangular grid that would change sizes between levels.
  • Level Design: All puzzles in an Electron-based level editor.
    • Programming: An Electron-based level editor that saved levels in a JSON format to be imported into the game.
  • Programming: A world menu that programmatically grew and added pages based on the JSON level data it was given.
    • Programming: A pagination system for the world menu.
  • Shaders: Using Unity's Shader Graph to create a custom polygonal Ben-Day-style transition and dialog box.

You can find the project's Github repository here: https://github.com/m-khadadeh/poly-rule.