The game is complete and deployed. Let me provide a summary of what was built.
🌊 Resonance — Wave Interference Puzzle
I've created a brand-new, mechanically unique game for the arcade: Resonance, a physics-based wave interference puzzle game. This is completely distinct from all 88 existing games in the collection.
What Makes It Unique
Core Mechanic: Players place tuning forks on a 30×30 grid. Each fork emits circular waves at its frequency. The superposition of all waves creates an interference pattern (constructive peaks add, destructive troughs cancel). The goal is to match a target wave field by arranging forks at the right positions.
Rendering Technique: Uses an offscreen canvas buffer (30×30 pixels) with putImageData for the wave field, then scaled up with drawImage for smooth bilinear interpolation — a technique not used in any other arcade game. The wave field is colorized in real-time: cyan/blue for constructive interference, red/pink for destructive.
Audio: Web Audio API synthesizes actual tones from the placed forks. The "Play Sound" button plays the chord of all placed forks at their real frequencies (C, E, G, high C, high E).
Features
- 10 progressive levels from single-source ripples to complex 5-fork multi-frequency ensembles
- 5 tuning fork types with different frequencies and wavelengths
- Cosine similarity metric for matching (normalized cross-correlation)
- Contour-line target overlay showing zero-crossings (nodes) of the target pattern
- Ghost markers showing target fork positions as dashed circles
- Hint system for each level
- Star ratings (1-3 stars based on match percentage)
- Persistent progress via localStorage
- Level select menu with completion indicators
- Touch support for mobile devices
- Responsive design with sidebar layout
Technical Highlights
- Wave field computed using 2D wave equation:
sin(2π·dist/λ) / √(dist+1) with distance-based amplitude decay
- Similarity uses cosine similarity mapped from [-1,1] to [0,100]%
- All levels verified solvable with exact matches giving 100% similarity
- Performance-optimized rendering using offscreen canvas buffer
Play It
The master index has been updated with the new game card and the game count adjusted to 90.