Skip to content

AI-powered roguelike dungeon crawler - The game that learns how you fail

Notifications You must be signed in to change notification settings

Jayanth7416/deathloop-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


DEATHLOOP AI

The game that learns how you fail.

Every death makes it smarter. Every run makes it harder.


The Concept

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?


Features

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

Screenshots

  ┌─────────────────────────────────────┐
  │  ████████████████████████████████   │
  │  █                              █   │
  │  █    ◆ ← You                   █   │
  │  █                 ● ← Slime    █   │
  │  █         ░░░░░                █   │
  │  █         ░░░░░   ▲ ← Ghost    █   │
  │  █         ░░░░░                █   │
  │  █                              █   │
  │  █   ■ ← Brute        ★ ← Exit  █   │
  │  ████████████████████████████████   │
  │                                     │
  │  Floor: 3  |  Kills: 12  |  HP: 65  │
  └─────────────────────────────────────┘

Controls

Platform Move Attack Dash
Desktop WASD / Arrow Keys Click / Left Mouse Space
Mobile Virtual Joystick Tap Right Side Swipe

Tech Stack

┌──────────────────────────────────────────────┐
│  DEATHLOOP AI ARCHITECTURE                   │
├──────────────────────────────────────────────┤
│                                              │
│  ┌─────────┐  ┌─────────┐  ┌─────────┐      │
│  │ Canvas  │  │  Web    │  │Capacitor│      │
│  │   API   │  │  Audio  │  │ Haptics │      │
│  └────┬────┘  └────┬────┘  └────┬────┘      │
│       │            │            │            │
│       └────────────┼────────────┘            │
│                    │                         │
│            ┌───────▼───────┐                 │
│            │   GAME CORE   │                 │
│            │  (Vanilla JS) │                 │
│            └───────┬───────┘                 │
│                    │                         │
│       ┌────────────┼────────────┐            │
│       │            │            │            │
│  ┌────▼────┐  ┌────▼────┐  ┌────▼────┐      │
│  │   Web   │  │ Android │  │   iOS   │      │
│  │ (Vercel)│  │  (APK)  │  │  (IPA)  │      │
│  └─────────┘  └─────────┘  └─────────┘      │
│                                              │
└──────────────────────────────────────────────┘

Quick Start

Play Online (Recommended)

Just visit deathloop-ai.vercel.app

Run Locally

git clone https://github.com/Jayanth7416/deathloop-ai.git
cd deathloop-ai
npm install
npx serve www

Build for Mobile

# Android
npx cap sync android
npx cap open android

# iOS (Mac only)
npx cap sync ios
npx cap open ios

The AI Death Tracker

The 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."
}

Roadmap

  • 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

Contributing

Found a bug? Have an idea? Open an issue or PR!


License

MIT - Do whatever you want with it.


Die. Learn. Repeat.
Made with frustration and determination

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •