Color Sort: Hue Puzzle
I rebuilt a single 8×8 prototype into a Unity puzzle game where players swap tiles to restore color gradients around fixed anchors.
Tools Unity 6 · C# · HLSL · DOTween · ScriptableObjects · Google Play Games Services · Unity IAP · LevelPlay · Python
Building more than one board
I separated board state, input, undo and hints from the level data. ScriptableObjects hold authored puzzles, while procedural layouts add variation without a stored image for every board.
Designing for different ways to see and play
I supported both drag-and-drop and tap-to-swap. Optional shapes mark tile groups, and anchor contrast adapts to the tile’s luminance.
Keeping offline progress
Local backups and revision-aware cloud merging preserve the highest unlocked progress and combine achievements when devices reconnect.
Screenshots & video
Development notes
A Stopwatch Games Android puzzle game about restoring gradients around anchor tiles. I rebuilt a single-level prototype into a modular game with handcrafted and procedural boards.
Design & engineering concepts
- Split a monolithic 8×8 prototype into ScriptableObject content and distinct board, input, move-history, hint and UI systems.
- Six gradient modes support bilinear corner blends, directional and hue/lightness blends, custom pixel arrays, void cells, and isometric or hexagonal layouts.
- The procedural generator uses a derangement shuffle with a minimum of two unlocked tiles to avoid starting with a solved board. Daily geometric puzzles are generated separately.
Mechanics & implementation
- Drag-and-drop and tap-to-swap share a grid snapping path, raycast fallback and safe-area adaptation. Input state resets when the app loses focus.
- Colorblind overlays add circle, square, triangle and diamond markers. Rec. 709 luminance determines anchor contrast. Dark mode, Zen mode, color inversion and UV effects give players additional display options.
- Five custom HLSL shaders support mosaic and hue-wave transitions, tile shimmer, gold foil and the animated menu background. DOTween handles tile feedback. Players can export and share unlocked art as Android wallpapers.
Challenges
- Cloud saves use revision counters, a persistent retry queue and JSON backups. Conflicts keep maximum progress and merge achievement sets to avoid overwriting offline progress.
- Fixed restart soft-locks, input state and hint issues, raycast-blocking overlays, and tween cleanup. A short grace period allows late reward callbacks to arrive after an ad closes.
Outcomes & placements
- 60 handcrafted levels, 300+ levels total, and 30+ chapters documented in the project notes.
- Unity IAP v5, LevelPlay, Google Play Games Services v2, notification permissions and channels, and native Android haptics.
- 18 unit tests, seven Play Mode end-to-end scenarios, 12 Unity Editor tools and 12 Python scripts for content creation, store captures and build checks.







