An Asteroids-style Android arcade game built with Jetpack Compose Canvas, featuring a DJ-mixer rotation control.
Gravity Drift is a native Android game built with Jetpack Compose Canvas — using the declarative UI framework for game rendering, which is an unconventional but interesting choice.
The game evolves from a gravity-based concept (v1.0) to a full Asteroids-style shooter (v2.1). You navigate a ship, destroy procedurally generated asteroids (8-12 sided polygons), and progress through 10 levels with 20% speed increase per level.
The standout feature is the DJ mixer-style rotation slider — instead of buttons, you drag a slider that maps directly to ship angle. The 3-layer parallax starfield (165 stars at different speeds) adds depth, and particle explosions provide satisfying feedback when asteroids shatter.
The game loop runs at 60fps with 16ms frame updates. The ship-centred camera means the universe moves around the ship rather than vice versa. A mini-map shows the full field.