BestPromptFinder
Home › Coding › Tiny Browser Game in One HTML File

Tiny Browser Game in One HTML File

Coding · Claude, GPT-6, Gemini · coding
85AI Quality /100
90AI Usefulness est. /100
82Eval Confidence /100
No votes yetCommunity results

Quality, usefulness and confidence are AI evaluations out of 100 — not user ratings. Community results come from visitors' "worked / didn't work" votes below. How scoring works →

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

Source

Created by BestPromptFinder — editorial prompt, not user-generated. See our content & source policy.

Related Coding prompts

Python: Download a CSV From a URL
Quality 94 · GPT-5.6
Public-Market and Competitor Data Collection Agent
Quality 92 · GPT-5.6
Plain-English to SQL Query Writer
Quality 91 · GPT-5.6
PRD to MVP Technical Plan
Quality 90 · Claude Code
Third-Party API Integration
Quality 90 · Claude Code
Database Schema and Migration
Quality 90 · Claude Code