Sound System: - Add soundStore with volume/mute persistence - Add useSound hook with Web Audio API fallback - Add SoundControl component for in-game volume adjustment - Play sounds for correct/incorrect, steal, timer, victory/defeat Team Chat: - Add TeamChat component with collapsible panel - Add team_message WebSocket event (team-only visibility) - Store up to 50 messages per session Emoji Reactions: - Add EmojiReactions bar with 8 emojis - Add ReactionOverlay with floating animations (Framer Motion) - Add rate limiting (1 reaction per 3 seconds) - Broadcast reactions to all players in room Admin Monitor: - Add Monitor page showing active rooms from Redis - Display player counts, team composition, status - Add ability to close problematic rooms Admin Settings: - Add Settings page for game configuration - Configure points/times by difficulty, steal penalty, max players - Store config in JSON file with service helpers CSV Import/Export: - Add export endpoint with optional filters - Add import endpoint with validation and error reporting - Add UI buttons and import result modal in Questions page Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
68 lines
2.2 KiB
Markdown
68 lines
2.2 KiB
Markdown
# Sound Assets for WebTriviasMulti
|
|
|
|
This directory contains theme-specific sound effects for the trivia game.
|
|
|
|
## Directory Structure
|
|
|
|
```
|
|
sounds/
|
|
drrr/ # DRRR (Dollars) theme - cyberpunk/urban style
|
|
retro/ # Retro Arcade theme - 8-bit style sounds
|
|
minimal/ # Minimal theme - subtle, clean sounds
|
|
rgb/ # Gaming RGB theme - electronic/synthwave
|
|
anime/ # Anime 90s theme - kawaii/bright sounds
|
|
```
|
|
|
|
## Required Sound Files
|
|
|
|
Each theme directory should contain the following MP3 files:
|
|
|
|
| File | Purpose | Duration | Notes |
|
|
|------|---------|----------|-------|
|
|
| `correct.mp3` | Played when answer is correct | ~0.5s | Positive, rewarding tone |
|
|
| `incorrect.mp3` | Played when answer is wrong | ~0.5s | Negative but not harsh |
|
|
| `steal.mp3` | Played when steal opportunity arises | ~0.5s | Tense, exciting |
|
|
| `tick.mp3` | Timer countdown tick | ~0.1s | Subtle, not annoying |
|
|
| `urgent.mp3` | Timer warning (last 5 seconds) | ~0.2s | More urgent than tick |
|
|
| `victory.mp3` | Game win | ~1-2s | Celebratory fanfare |
|
|
| `defeat.mp3` | Game loss | ~1-2s | Sympathetic but not depressing |
|
|
| `select.mp3` | Question selection | ~0.2s | Subtle click/select |
|
|
|
|
## Fallback System
|
|
|
|
If sound files are not available, the application will use Web Audio API generated tones as fallback. These provide basic audio feedback while allowing the game to function without external audio files.
|
|
|
|
## Recommended Sources for Free Sounds
|
|
|
|
- [Freesound.org](https://freesound.org) - Creative Commons sounds
|
|
- [Mixkit](https://mixkit.co/free-sound-effects/) - Free sound effects
|
|
- [Pixabay](https://pixabay.com/sound-effects/) - Royalty-free sounds
|
|
- [OpenGameArt](https://opengameart.org) - Game-specific sounds
|
|
|
|
## Theme Sound Guidelines
|
|
|
|
### DRRR (Dollars)
|
|
- Cyberpunk/urban aesthetic
|
|
- Digital, glitchy sounds
|
|
- City ambiance influence
|
|
|
|
### Retro Arcade
|
|
- 8-bit chiptune style
|
|
- Classic arcade game sounds
|
|
- Nostalgic NES/SNES era
|
|
|
|
### Minimal
|
|
- Clean, subtle sounds
|
|
- Modern UI feedback tones
|
|
- Non-intrusive clicks
|
|
|
|
### Gaming RGB
|
|
- Electronic/synthwave
|
|
- Bass-heavy, modern
|
|
- Esports broadcast style
|
|
|
|
### Anime 90s
|
|
- Kawaii, bright sounds
|
|
- J-pop influenced
|
|
- Sparkle and shine effects
|