learn.aathan.in

Build & Share a Browser Mini-Game

Describe a game in plain English, and Google AI Studio builds a real, playable web game you can deploy and send to friends. The same path used to build a game on games.aathan.in.

What you’ll build: an actual playable browser game — pick your flavor (endless runner, whack-a-mole, a quiz game, a simple platformer) — that you can put online and share a link to. Time: an afternoon. Cost: free to build; free/low-cost to host.

This isn’t a toy demo. It’s exactly how the Eagle Hunt game on games.aathan.in was first built — described to an AI, generated as real code, then deployed.

The tool: Google AI Studio (Build mode)

Google AI Studio has a Build mode that turns a plain-English description into a working web app — it writes the code, shows you a live preview, and lets you refine it by chatting. When you’re happy, you can deploy it (to Google’s Cloud Run) or export the code / push it to GitHub to host anywhere.

Build it

1. Go to AI Studio and open Build mode. Head to aistudio.google.com, sign in with a Google account, and choose Build.

2. Describe your game precisely. The more specific, the better the first result. For example:

Build a browser game called "Star Catcher". A spaceship at the bottom moves
left/right with the arrow keys (and on-screen buttons for mobile). Stars fall
from the top; catching one gives +1 point, missing three ends the game. Speed
increases as the score climbs. Show the score at the top and a Game Over screen
with a Play Again button. Use a dark space background and smooth animation.

3. Play it in the preview, then refine. Ask for changes conversationally:

  • “Add a sound when I catch a star.”
  • “Make the ship move faster.”
  • “Add a high score saved in the browser.”
  • “Make it work with touch on phones.”

4. Ship it. Two easy paths:

  • Deploy from AI Studio to get a hosted, shareable URL directly.
  • Export the code (or push to GitHub) and drop it on a free host like Vercel, Netlify, or GitHub Pages — then point a custom subdomain at it if you have a domain.

Make it yours

  • Whack-a-mole with your friends’ faces as the moles.
  • A trivia game on a topic you love — feed it your own questions.
  • A “don’t touch the walls” maze that gets harder each level.
  • A reaction-time tester — how fast can you tap when the screen flashes?

Pick something small and finishable. A tiny game that actually works beats an ambitious one that never ships.

Reality check

  • AI Studio is genuinely capable of a complete, playable game, but you’ll do a few rounds of “that’s not quite right → fix it.” That back-and-forth is the process, not a sign you did something wrong.
  • Hosting on Google’s Cloud Run may need billing enabled for sustained use; exporting the code and using a free static host (Vercel/Netlify/GitHub Pages) avoids that entirely for a simple game.
  • Keep the scope tight. “Endless runner with one obstacle type” ships this afternoon; “open-world RPG” does not.

Want a whole home for your games like games.aathan.in? That’s a lightweight landing page linking to each game — a natural next build.