Skip to main content

The problem

Everyone has game ideas. They show up as doodles in the margins of notebooks, on desks, on the back of a worksheet. But turning an idea into something you can play usually means learning code or a game engine first, so the doodle stays a doodle and ends up in the bin.

Scrawl lets the drawing itself be the game. If you can draw it, you can play it.

What it does

Photograph a doodle, upload one, or sketch on screen. Gemma 4 reads it, works out whether you drew a platformer, a maze or a race track, and finds every platform, spike, coin, enemy, key and goal. A few seconds later it’s playable in the browser, with a link you can share.

  • Platformer: run, jump, collect coins, stomp enemies, reach the star
  • Maze: collect every key to unlock the exit
  • Race: drive 3 laps around your drawn track

How Gemma 4 is used

One multimodal call (gemma-4-26b-a4b-it via the Gemini API) classifies the drawing and returns every object with its position. Scrawl then checks the result and fixes common problems, such as a missing goal, a floating character or an unreadable track, so even a messy doodle always becomes a playable level.

Why it’s useful

  • No code, no game engine, no install. It works in any browser, including phones and tablets with touch controls.
  • Teachers and students can turn a classroom sketch into a playable game.
  • Game designers can playtest a paper level in seconds.
  • Photos are shrunk before upload, so it works on slow mobile data.
  • Rate limits and upload caps keep it cheap to run.
  • Fully open source (MIT).

Built with

Gemma 4, Gemini API, Python, FastAPI, JavaScript, HTML5 Canvas, Supabase

Live demo: https://scrawl-plum.vercel.app/
Code: https://github.com/Ahnaf-nub/Scrawl

Built with

pythonhtmlcssgithubfastapisupabasevscodevercelgemmacss3jsonvisual-studiouvicorn

AI tools

Coded withClaude CodeGoogle AI StudioClaude Sonnet 5.5Gemma 4 26B A4B

Prize Categories Entered

  • Deepmind Google

    Best Use of Gemma 4

    Submitted
  • DigitalOcean

    Best Open-Source AI Project

    Submitted