🤖 AI Dev Tools

8:43 to AI-Generated Dungeons on a Phone: My On-Device Roguelike Experiment

Picture this: a roguelike RPG where your phone's brain — not some distant server — dreams up deadly floors on the fly. One dev did it with Phi-4-mini in Unity, clocking 8 minutes 43 seconds for JSON gold on a Galaxy S24 Ultra.

Samsung Galaxy S24 Ultra running Unity roguelike with on-device AI generating JSON dungeon data

⚡ Key Takeaways

  • Phi-4-mini runs in Unity roguelikes on Android, generating valid JSON dungeons in ~9 minutes on S24 Ultra.
  • NPU acceleration underdelivers now (QNN lib fails), but CPU baselines work—hinting at explosive future potential.
  • Key hacks: Custom tokenizer, adb model deploy, SDK 31 for vendor libs—blueprint for on-device AI games.
Published by

DevTools Feed

Ship faster. Build smarter.

Worth sharing?

Get the best Developer Tools stories of the week in your inbox — no noise, no spam.

Originally reported by dev.to

Stay in the loop

The week's most important stories from DevTools Feed, delivered once a week.