Inspiration

Inspired by the magic of Harry Potter, I wondered:

What if a drawing could become a game you could actually play?

That simple idea became Draw2Play AI. I wanted to explore how AI could transform imagination into interactive experiences, allowing anyone to turn sketches, doodles, or images into playable games.

What It Does

Draw2Play AI converts drawings and reference images into playable 2D game experiences.

Users upload an image, the AI analyses visual elements, generates a structured game design, and creates an interactive game scene. The goal is to make game creation more accessible, fun, and creative.

How I Built It

I built Draw2Play AI in 18+ hours using:

  • TypeScript
  • React
  • Vite
  • Phaser
  • Zod
  • Google Gemini Vision
  • Hugging Face (optional)

The system combines AI-powered image understanding, structured game planning, and dynamic scene generation. I also implemented an offline fallback mode to ensure the application remains functional even when AI services are unavailable.

Challenges I Ran Into

The biggest challenges weren't just coding.

I dealt with internet issues, platform crashes, API limitations, and debugging AI-generated code. Making AI outputs reliable and turning them into valid game configurations required extensive testing, validation, and error handling.

These challenges taught me that building AI products is as much about reliability and problem-solving as it is about AI itself.

Accomplishments

I'm proud that I:

  • Built a complete image-to-game workflow
  • Generated playable 2D scenes using Phaser
  • Connected AI image analysis to game design generation
  • Added offline fallback support
  • Successfully completed my first hackathon project

Most importantly, I transformed a creative idea into a working product under tight time constraints.

What I Learned

This project taught me how to integrate AI responsibly, validate generated content, handle failures gracefully, and break ambitious ideas into manageable steps.

I also learned that persistence, experimentation, and debugging are just as important as writing code.

What's Next for Draw2Play

Future improvements include:

  • Smarter drawing recognition
  • Personalised playable characters
  • Additional game genres and mechanics
  • Richer animations and interactions
  • Better performance and reliability
  • More creative control for users

Vision

Make game creation accessible to everyone.

Turn imagination into gameplay.

Draw it. Bring it to life. Play your imagination. 🚀

Built With

  • ai-assisted
  • artificial-intelligence
  • chatgpt
  • development
  • game-development
  • generative-ai
  • huggingface
  • lovable
  • mcp
  • web-development
Share this project:

Updates

Submission history