Build a One-Button Fox Endless Runner Game in a Single HTML File
A ready-to-paste prompt that produces Ember Fox Dash, a polished one-button forest runner with coyote-time jumps, fair obstacle spacing, rising speed and synthesized sound.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior front-end developer who builds polished browser games.
Build Ember Fox Dash, an original one-button endless runner: a fox sprints through an autumn forest at dusk, leaping logs, toadstools, stumps and narrow creeks while grabbing acorns.
1. Controls: Space, Up Arrow, click or tap to jump; hold for a higher leap, release early to cut it short. Add 100 ms coyote time and a 130 ms jump buffer. M mutes, P pauses.
2. Speed rises steadily to a cap. Keep spacing fair: every gap exceeds one full jump at current speed, double obstacles only appear later, hitboxes are slightly forgiving.
3. Score distance plus 10 per acorn, keep a session best in memory, and draw Ready, Paused and Game Over panels on the canvas.
4. Canvas art only: dusk sky, parallax hills and pines, leafy ground, in plum, ember orange and cream. Scale cleanly from 360 to 1280 px wide.
5. Under prefers-reduced-motion, freeze background layers and drop screen shake and particles; keep strong contrast and announce events in a live region.
6. Synthesize jump, pickup, landing and crash sounds with Web Audio on first input, at low volume, with a visible mute button.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Coyote time, a jump buffer and variable jump height are named with exact values, so controls feel responsive instead of random.
- Tying the minimum obstacle gap to jump airtime at current speed guarantees every pattern is clearable, even at top pace.
- Reduced-motion, audio-on-first-input and mute rules are spelled out, so the file passes accessibility and browser autoplay rules first time.
Paste into ChatGPT, Claude or Gemini. Save the returned code as ember-fox-dash.html and open it in any browser, or run it in the chat's preview or canvas panel. No installs or internet needed.
Common edits
- Swap the theme: make it a penguin on ice floes or a robot in a neon city by changing the names, palette and obstacle shapes.
- Tune difficulty by changing the starting speed, the speed ramp per second, or the chance of creeks and double logs.
Prompt details
- By
- Prompts-GPT editors
- Published
Keep exploring
More like this
Build a Color Sequence Memory Game with Synth Tones in One HTML File
A ready-to-paste prompt that builds Echo Garden, a four-pad color-and-shape sequence memory game with Web Audio tones, a strict mode and rising speed.
Build a Match-Three Tile Swapping Puzzle with Cascades and Combo Scoring
Generates a complete single-file match-three puzzle with swap validation, gravity refill, chain-reaction combo scoring and an automatic reshuffle when no moves remain.
Build a Paddle and Bricks Game with Power-Ups and Levels in One HTML File
A ready-to-paste prompt for a complete paddle-and-bricks canvas game with three original levels, angle-based bounces, three power-ups, synthesized sound, and touch, mouse and keyboard controls.
Build a Reaction Time Tester Game with False-Start Detection in One HTML File
Get a polished reaction time test with random delays, false-start penalties, a five-attempt average and an SVG results chart, all in one HTML file.
Build a Tower Stacking Game with Slice-Off Blocks in a Single HTML File
A ready-to-paste prompt that builds a one-tap tower stacking game where overhangs are sliced off, perfect drops restore width, and the camera follows the tower upward.
Build a Word Scramble Puzzle Game with Hints, Categories and Streaks in HTML
A prompt that produces a single-file word scramble game with themed categories, paid letter hints, streak bonuses, and both typing and tile-tapping controls.