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.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: itch.io · Undated
Related use cases
Orchestrate a multi-phase RAG migration
A walkthrough of using Gemini CLI to coordinate a complex, multi-phase cloud migration project.
Sort waste using local recycling rules
Gemini Robotics-ER 1.5 looks up local recycling rules online, then plans and sorts objects into compost, recycling and trash bins.
Automate browser work with Gemini's Chrome agent in the background
The poster uses Gemini's Chrome browser agent to automate browser tasks, and it keeps working while the tab is closed and they do other things.
Add a battle-of-Alesia expansion to a 1990s game remake
Nate Combs used ChatGPT for research and a prompt, and Claude Code implemented the expansion, iterating on his playtest feedback.
Build four games in parallel with agents
Four Grok 4.20 agents built a tower defense, mini Factorio, CHIP-8 emulator and roguelike shooter in parallel over a day.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.