Every death makes it smarter. Every run makes it harder.
You enter a procedurally generated dungeon. You fight. You die.
But here's the twist: The AI watches everything.
- Die to a Slime too often? More Slimes spawn.
- Spam the dash button? Meet the Dasher enemy that counters it.
- Camp in corners? The AI sends Ghosts through walls.
The more you play, the more it adapts. The more you die, the more it learns.
Can you break the loop?
| Feature | Description |
|---|---|
| Adaptive AI | Tracks your playstyle and spawns enemies to counter your weaknesses |
| 5 Enemy Types | Slimes, Ghosts, Brutes, Spitters, and Dashers - each with unique behaviors |
| Procedural Dungeons | New layout every floor - no two runs are the same |
| Death Cards | Generate shareable death cards for social media |
| Skin Shop | Earn coins and unlock 6 cosmetic player skins |
| Leaderboards | Compete globally for highest floor, most kills |
| 12 Achievements | From "First Blood" to "Loop Breaker" |
| XP & Levels | Progress system that persists across runs |
| Cloud Saves | Your progress syncs across devices |
┌─────────────────────────────────────┐
│ ████████████████████████████████ │
│ █ █ │
│ █ ◆ ← You █ │
│ █ ● ← Slime █ │
│ █ ░░░░░ █ │
│ █ ░░░░░ ▲ ← Ghost █ │
│ █ ░░░░░ █ │
│ █ █ │
│ █ ■ ← Brute ★ ← Exit █ │
│ ████████████████████████████████ │
│ │
│ Floor: 3 | Kills: 12 | HP: 65 │
└─────────────────────────────────────┘
| Platform | Move | Attack | Dash |
|---|---|---|---|
| Desktop | WASD / Arrow Keys | Click / Left Mouse | Space |
| Mobile | Virtual Joystick | Tap Right Side | Swipe |
┌──────────────────────────────────────────────┐
│ DEATHLOOP AI ARCHITECTURE │
├──────────────────────────────────────────────┤
│ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Canvas │ │ Web │ │Capacitor│ │
│ │ API │ │ Audio │ │ Haptics │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ │
│ │ │ │ │
│ └────────────┼────────────┘ │
│ │ │
│ ┌───────▼───────┐ │
│ │ GAME CORE │ │
│ │ (Vanilla JS) │ │
│ └───────┬───────┘ │
│ │ │
│ ┌────────────┼────────────┐ │
│ │ │ │ │
│ ┌────▼────┐ ┌────▼────┐ ┌────▼────┐ │
│ │ Web │ │ Android │ │ iOS │ │
│ │ (Vercel)│ │ (APK) │ │ (IPA) │ │
│ └─────────┘ └─────────┘ └─────────┘ │
│ │
└──────────────────────────────────────────────┘
Just visit deathloop-ai.vercel.app
git clone https://github.com/Jayanth7416/deathloop-ai.git
cd deathloop-ai
npm install
npx serve www# Android
npx cap sync android
npx cap open android
# iOS (Mac only)
npx cap sync ios
npx cap open iosThe game analyzes every death and adapts:
// Example: AI sees you die to Slimes 3 times
{
pattern: "slime_weakness",
response: "spawnMore",
enemy: "slime",
taunt: "Still struggling with Slimes? Adorable."
}
// Example: AI sees you spam dash
{
pattern: "dash_spam",
response: "antiDash",
enemy: "dasher",
taunt: "You can't outrun what mirrors you."
}- Core gameplay loop
- 5 enemy types with unique AI
- Procedural dungeon generation
- Death tracking & adaptation
- Skin shop with coins
- Mobile support (Capacitor)
- Authentication system
- Leaderboards
- Achievements
- Boss battles (every 5 floors)
- Daily challenges
- Multiplayer ghost runs
- In-app purchases
Found a bug? Have an idea? Open an issue or PR!
MIT - Do whatever you want with it.
Die. Learn. Repeat.
Made with frustration and determination