I'll build a polished typing speed game with all the requested features. Let me start by exploring the project structure.
Now let me build the complete typing game. I'll create multiple files for organization: word lists, game logic hooks, particle system, and UI components.
Now let me create the main game component with all the game logic:
Now let me create the main App component with all game states:
Now let's build and check for any errors:
The project builds successfully. Let me review the game to see if there are any improvements I should make - particularly around mobile touch support and making the core loop even more fun:
The game is working well. Let me make a few targeted improvements to enhance the mobile experience and make the game more engaging:
- Add a virtual keyboard button for mobile to trigger focus
- Improve the touch experience with better tap targets
- Add a "time bonus" visual indicator when completing words fast
- Add a progress bar to level completion
Let me enhance the game with a few more polished features. I'll rewrite the full App to add:
- Level progress indicator
- Better mobile touch area (tap anywhere to focus)
- Visual effects for combo milestones
- Improved character-by-character feedback with scaling
- Better time warning effects
The project builds successfully. Let me verify all the files are in order:
Everything is in place. Here's a summary of what I built:
TypeStorm — Speed Typing Arena
Core Features:
- Instant fun loop: Start → 3-2-1 countdown → type words immediately. Words scale from easy (2-3 letters) to expert (10+ letters) as you level up every 5 words
- Satisfying feedback:
- Screen shake on errors
- Canvas particle system with sparks, glowing orbs, rings, and floating score text
- Character-by-character color feedback with glow effects (green=correct, red=error, blue=current)
- Score pop animations on word completion
- Level-up flash overlay
- Speed labels (BLAZING/FAST/GOOD) and PERFECT word indicators
Game Systems:
- Combo system: Consecutive correct words build multipliers (shown every 3x with particle explosions). Streak celebrations at 5x, 10x, etc.
- Scoring: Points based on word length × combo multiplier + time bonus for fast completion
- Progressive difficulty: 4 tiers (Easy → Medium → Hard → Expert) with 200+ unique words
- Web Audio synthesizer: Procedural sound effects for keypresses, correct words, errors, combos, level-ups, and game over — no external audio files needed
States:
- Menu: Animated logo, keyboard visualization, start button, leaderboard access, sound toggle, how-to-play guide
- Countdown: 3-2-1-GO with sound cues
- Playing: Full HUD with score, timer, level, combo, WPM, accuracy, words typed. Timer bar + level progress bar
- Paused: ESC to pause/resume, blur overlay, quit option
- Game Over: Final score card with stats grid, high score name entry, word history review, instant restart
Mobile/Touch:
- Responsive design with mobile-specific sizes
- Tap anywhere on game area to focus input
- Mobile skip button (replaces TAB)
- Touch-friendly button sizes with
active:scale-95 feedback
Performance:
- Canvas-based particle renderer on requestAnimationFrame
- Delta-time based physics for consistent 60fps
- Efficient particle cleanup (removes dead particles each frame)
- Minimal re-renders via useCallback/useMemo
Local Storage:
- Top 10 high scores saved with name, score, WPM, accuracy, level, and date
- Automatic high score detection on game over
Files built: index.html, src/index.css, src/words.ts, src/particles.ts, src/useSound.ts, src/storage.ts, src/ParticleCanvas.tsx, src/App.tsx