BestPromptFinder
Tiny Browser Game in One HTML File
85AI Quality /100
90AI Usefulness est. /100
82Eval Confidence /100
No votes yetCommunity results
The prompt
Act as a game programmer who loves tight code. Build a small, complete game that runs in a browser from one HTML file. Game: [e.g. a top-down maze shooter / a snake variant / a one-button jumper / a word puzzle] Size limit: keep the whole file under [100] KB. Controls: [keyboard / touch / both] Requirements: 1. Plain HTML, CSS and JavaScript in one file. No libraries, no images loaded from the internet; draw everything with canvas or CSS. 2. Start screen, score, lives or a timer, game over and restart. 3. Smooth frame updates with requestAnimationFrame; pauses when the tab is hidden. 4. A sound effect or two made with the Web Audio API, with a mute key. 5. A short comment block at the top: controls, and which constants to change for speed and difficulty. After the code, tell me the final file size, what you cut to stay under the limit, and any known bugs. Don't copy an existing commercial game's name, characters or levels.Find similar in the app →
Did this prompt work for you?
Why this prompt
- Hand-picked, editorially reviewed prompt
- Written for Claude, GPT-6, Gemini
Source
Created by BestPromptFinder — editorial prompt, not user-generated. See our content & source policy.
Related Coding prompts
Python: Download a CSV From a URLQuality 94 · GPT-5.6Public-Market and Competitor Data Collection Agent
Quality 92 · GPT-5.6Plain-English to SQL Query Writer
Quality 91 · GPT-5.6PRD to MVP Technical Plan
Quality 90 · Claude CodeThird-Party API Integration
Quality 90 · Claude CodeDatabase Schema and Migration
Quality 90 · Claude Code