An adaptive AI platformer where the game learns your habits and counters them in real time.
Beat the level. Then beat your own pattern.
Most platformers get easier once you discover the pattern.
You vs You flips that: the AI finds your pattern first, then challenges it.
Instead of static levels, this game uses gameplay telemetry to adapt obstacle pressure, route targeting, and trap behavior while preserving fairness and at least one viable path.
| 🧠 Adaptive AI Gameplay Learns jump/crouch/route habits and applies behavior-based counters. |
⚖️ Fair Adversarial Design Challenges predictable play without impossible setups. |
| 🏃 Level + Infinite Modes Campaign progression and score-chasing survival mode. |
🎒 Shop + Inventory Unlock and manage skins, boosts, and abilities. |
| ☁️ Cloud Sync Supabase-backed account progress and leaderboard scoring. |
🌐 Cross-Device Browser Play Runs on phone, tablet, laptop, and desktop browsers. |
flowchart LR
A[Play Run] --> B[AI Observes Behavior]
B --> C[Pattern Modeling]
C --> D[Adaptive Counter Pressure]
D --> E[Earn Coins and Unlock Gear]
E --> F[Adjust Strategy]
F --> A
- Play runs in Level or Infinite mode
- AI observes route/movement habits
- Game adapts with targeted counters
- You unlock boosts, abilities, and skins
- You evolve strategy and push farther
- Frontend: TypeScript, Vite, HTML5 Canvas
- AI/Adaptation Runtime: Custom telemetry + modeling + mutation systems
- Backend Services: Supabase Auth + Postgres tables for progress/leaderboard
- State Persistence: Account-linked cloud persistence for cross-device continuity
src/
game.ts # Main runtime loop, state, UI wiring
adaptiveGenerator.ts # Adaptive level composition + safety checks
aiTrapDirector.ts # Runtime trap targeting and mutation logic
playerAnalyzer.ts # Telemetry -> player model
runTracker.ts # Per-run event capture
debugPanel.ts # Internal diagnostics (dev use)
renderer.ts # Visual output
npm install
npm run devOpen the app at the local Vite URL.
npx tsc --noEmit
npm run build- Copy
.env.exampleto.env - Add
VITE_SUPABASE_URLandVITE_SUPABASE_ANON_KEY - Run SQL setup files:
supabase-migration.sqlsupabase-migration-2.sqlsupabase-migration-3.sql
- See full details in
AUTH_SETUP.md
Built for a 7-day AI game challenge with gameplay-first AI adaptation.
- ✅ Built during the hackathon window
- ✅ Playable on all device browsers
- ✅ Meaningful AI integrated directly into gameplay
- ✅ Account progress, inventory persistence, and leaderboard support
MIT (see LICENSE)