Prompt Library 💻 Coding & Dev Cosmic Keystrokes Game
Claude 💻 Coding & Dev Advanced

Cosmic Keystrokes Game

System prompt version: Generate the Cosmic Keystrokes typing game as a standalone HTML file.
👁 6 views ⎘ 0 copies ♥ 0 likes

The Prompt

Create a complete, self-contained HTML file for an interactive space-themed speed typing game called "Cosmic Keystrokes."

Game requirements:
- Side-scrolling gameplay: words drift from right to left across a starfield background
- The player types the words before they reach the left edge
- Score, WPM (words per minute), and lives tracker displayed
- 3 lives — lose one when a word escapes off screen
- Words speed up progressively as score increases
- Include a start screen with instructions, active game screen, and game-over screen showing final WPM and accuracy
- Visual feedback: correct words explode/disappear with a particle effect, missed words flash red

Technical:
- Single HTML file with embedded CSS and JS
- Use Tailwind CSS via CDN for base styles
- Dark space theme with neon accent colors
- Smooth 60fps gameplay using requestAnimationFrame
- Mobile keyboard support if possible

Make it genuinely fun and polished.

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into Claude

Open your preferred AI assistant and paste the prompt to get started.