An endless space survival & shooter game — generated entirely by AI and written in pure Java using the Android Canvas API. No game engines. No bitmaps. No external audio files. Everything is produced programmatically.
Stellar Drift started as a simple asteroid-dodging prototype and evolved into a full space shooter experience featuring:
- in-game economy
- ship progression
- advanced game feel systems
- procedural audio
- physics-driven gameplay
The entire game is generated purely through code.
Graphics are rendered in real time using the Android Canvas API (Path, Paint, gradients).
Audio is generated using AudioTrack and mathematical waveforms (sine, square, noise).
The architecture uses an optimized game loop with object pooling to maintain 60 FPS.
Unlock different ships with distinct stats and play styles:
- Striker — Fast interceptor
- Juggernaut — Heavy bomber with dual cannons
- Phantom — Alien triple-spread weapon system
- Swarm — Twin-hull bullet carrier
- Eclipse — Fast stealth hunter with piercing shots
- Zenith — End-game divine vessel with massive penta-spread
Destroy asteroids and collect StarDust to earn Cosmic Credits.
Credits can be used in the Hangar to:
- unlock ships
- upgrade ship statistics
Upgradeable attributes:
- Speed
- Fire Rate
- Damage
Each stat supports 5 upgrade levels.
Your ship constantly consumes fuel.
If fuel reaches zero the ship slows dramatically.
Fuel can be restored by collecting Golden StarDust.
Low fuel (<20%) triggers:
- screen pulse warning
- heartbeat vibration feedback
- Auto fire based on Fire Rate stat
- Destructible asteroids with size-based HP
- Velocity-based movement physics
- Ship banking up to 12° based on horizontal velocity
Temporary power-ups appear during gameplay:
🧲 Magnet — Pulls nearby StarDust toward the player.
🕐 Slow-Mo — Slows the universe except the player ship.
✖️ Double — Doubles score, credits and fuel pickups.
🛡 Shield — Blocks one fatal hit.
🔵 Plasma Core — Rare item triggering OVERCHARGE:
- double speed
- triple fire rate
- bullet-hell mode
Duration: 4 seconds
- Snap Collection (magnetic item pickup)
- Hit Stall micro freeze effect
- Chromatic aberration death glitch
- Graze chain system for near misses
- Particle ring burst effects
- Elastic UI animations
- Speed lines at high velocity
- Danger vignette when asteroids are close
- High score proximity line
These systems create a responsive arcade feel.
All audio is synthesized in real time.
Examples:
Laser → "Piyuw"
Explosion → "Boom"
UI click → "Ding"
Generated using mathematical waveforms via AudioTrack.
Additional systems:
- adaptive ambient drone soundtrack
- pitch changes based on gameplay tempo
- vibration patterns for gameplay events
- Zero allocations during gameplay
- Object pooling for bullets and particles
- Ring buffers for temporary effects
- Cached vector paths for asteroid geometry
- Isolated Paint objects for UI rendering
- Open the Actions tab
- Select the latest workflow
- Download the Release APK from Artifacts
Clone and build the project:
git clone https://github.com/omersusin/StellarDrift.git
cd StellarDrift
gradle wrapper --gradle-version 8.2
chmod +x gradlew
./gradlew assembleRelease
This game was developed through collaboration between a human designer and Anthropic Claude AI.
The human provided:
- vision
- gameplay direction
- design feedback
The AI generated the implementation and architecture.
⭐ If you enjoyed the project, consider starring the repository ⭐
A demonstration that AI-assisted development can produce complex and polished interactive systems.