1 Minute Ai: HTML Dungeon Adventure Game


So in our search for more single file applications to make with Ai we stumbled on the idea of a choose your own adventure dungeon game. Using Claude.ai (our preferred Ai for simple coding at the moment) and just a simple prompt, Claude.ai produced a pretty rounded game with mechanics, inventory, currency, health, and more, and even suggested more ways in could improve the game. There was no prompt about story, that was completely the Ai, but if you had a story you enjoyed, or maybe a story you have written, this could be a fun way to bring it to life. Check out the prompt and the game below or play here.

What about a simple dungeon game with images and text that you make choices along the way and have multiple outcomes for your character (like a bad, ok, and good) something with a story telling element and some simple graphics?

Ah, a text-based adventure game with visual elements – that’s a great idea! We can create a simple dungeon crawler with branching paths, character stats, and some basic imagery using SVG for the visuals. Here’s an implementation:

I’ve created a simple dungeon crawler with:

  • Character stats (Health and Gold)
  • Inventory system with items that unlock new paths
  • Simple SVG graphics for each scene
  • Multiple branching paths and outcomes
  • Items that affect gameplay (like the torch needed for certain paths)
  • A healing mechanism (drinking from the stream)
  • Traps and dangers
  • Treasure to collect

The game includes several key features:

  1. Visual representation of each room using SVG
  2. Stats tracking for health, gold, and inventory
  3. Conditional choices (some require specific items)
  4. Multiple paths through the dungeon
  5. Different outcomes based on choices

Would you like me to expand it with:

  1. More complex character stats (strength, dexterity, etc.)?
  2. Combat system with enemies?
  3. More elaborate story branches?
  4. More detailed graphics?
  5. Sound effects?

Let me know what aspects you’d like to enhance!

The Crystal Cavern

The Crystal Cavern

Health
100
Gold
0
Items
0