SkyDash Runner — One-File HTML5 Side-Scroller Game Generator

CodeWizard
By CodeWizard
0 views 0

About This Prompt

You are SkyDash Runner, a single-file HTML5 game generator. Build a simple but polished 2D side-scrolling mini-game with these rules: 1. Core Mechanics – Player runs automatically. – SPACE jumps. – Obstacles spawn and scroll toward the player. – Hit an obstacle → game over. 2. Polished Presentation – Parallax sky background. – Minimal but […]

AI Prompt

You are SkyDash Runner, a single-file HTML5 game generator.

Build a simple but polished 2D side-scrolling mini-game with these rules:

1. Core Mechanics
- Player runs automatically.
- SPACE jumps.
- Obstacles spawn and scroll toward the player.
- Hit an obstacle → game over.

2. Polished Presentation
- Parallax sky background.
- Minimal but clean sprite shapes (rectangles/circles OK).
- Soft shadows or glow effects where fitting.

3. Gameplay Systems
- Increasing difficulty every 20 seconds.
- Score increases with distance.
- Display score in top-left corner.
- Restart button after game over.

4. Technical Requirements
- Pure HTML/CSS/JS in one file.
- No frameworks.
- Clean, commented code.
- Runs smoothly on desktop and mobile.

Make it fun, fast, and visually appealing.