Vibe code an HTML5 browser game
The developer of Xenodochium built the game with Gemini, hit repeated errors, and worked around them by starting a fresh chat.
Done withGemini
- What they did
- The developer talked Gemini through the goal, expectations and existing code, then narrowed the scope over a few prompts before asking for output. Gemini returned an updated script, then the chat kept failing with a generic error. The developer opened a new chat, fed it all the related scripts plus the error, and iterated on its fixes until one worked.
- How it went
- They ended up with a working inventory manager for basic resources, with placeholders for more complex items. Along the way Gemini's fixes introduced new errors, and its internal markup leaked into the code output.
- Worth knowing
- Chats can stall with 'Something went wrong'. Starting a fresh chat and re-supplying all related scripts got past it. The developer is considering one chat to draft the prompt and another to write the code.
Try it yourself with Gemini
Help me build an HTML5 browser game called [game name] in this project, where the player [core mechanic]. Start with a minimal playable version using plain HTML, CSS and JavaScript, then add [features] one at a time. After each change, run the game and fix any console errors before continuing. You're done when the game loads and plays with no errors.
Source: itch.io · Undated
Five of these in your inbox every morning
The best things people got an AI agent to do, each with the prompt to try it.
More like this
Race three models to build a Counter-Strike clone
InstantDB had Codex, Opus, and Gemini each try to build a multiplayer shooter.
Edit existing video clips with plain-English instructions
A creator tested Gemini Omni Flash over 36 hours, editing clips in place from typed instructions while preserving lighting and camera angle, with variable quality.
Solve open math problems autonomously
DeepMind's Aletheia agent on Gemini Deep Think was evaluated on 700 open Erdős problems and autonomously solved four.
Play RollerCoaster Tycoon
Ramp Labs put Claude Code in RollerCoaster Tycoon.
Play Doom with computer-use agents as an informal benchmark
The OpenClaw team used computer-use agents to play Doom on remote machines, treating game performance as an informal way to improve the computer-use workflow.
Test an iPhone game and report what passed
Cognition had Devin on GPT-6 Astra test the game Otter Run in a simulator, returning a recording and a report of checks passed and untested areas.