Skip to content
vikash.kumar
← All projects
gameJun 2026Solo developer

Gravity Grid

A block puzzle game with a twist — rotate gravity itself and every piece on the board falls toward the new floor. Pure Flutter, no game engine.

FlutterDartCustomPainterImplicit animations

Overview

Gravity Grid is a block puzzle where the core mechanic is rotating gravity: shift the direction of "down" and every block on the board re-settles toward the new floor, opening lines that were impossible a move earlier. It is built entirely in Flutter — widgets, CustomPainter, and the animation system — with no game engine underneath.

The mechanic

Classic block puzzles are about placing pieces; Gravity Grid is about re-reading the whole board. A single gravity rotation can turn a losing position into a chain clear, so the skill ceiling lives in planning two rotations ahead rather than reacting to the next piece.

Technical highlights

  • Deterministic settle simulation — gravity shifts re-settle the board through a pure function over the grid state, which made the mechanic trivially unit-testable.
  • Flutter as a game runtime — render layer on CustomPainter, game state fully separated from widgets, animations driven by the standard ticker rather than a bespoke loop.
  • No engine dependency — the entire game ships as a plain Flutter app, which keeps the APK small and the build chain simple.

What I'd do differently

Full case study in progress — being expanded with board-state diagrams and a breakdown of the settle algorithm.