rts-hud-audio-design
Use when designing or overhauling RTS user interfaces, command cards, hotkey grids, tooltips, game menus, or procedural WebAudio sound effects (Karplus-Strong strings, FM metallic clashes, filtered noise wind/rain/thunder, and theme-specific foley).
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- rts-hud-audio-design
- description
- Use when designing or overhauling RTS user interfaces, command cards, hotkey grids, tooltips, game menus, or procedural WebAudio sound effects (Karplus-Strong strings, FM metallic clashes, filtered noise wind/rain/thunder, and theme-specific foley).
03 SKILL.md 正文
RTS HUD Architecture, Ergonomics & Procedural WebAudio DSP
1. Three-Layer RTS Control & HUD Hierarchy
Per competitive RTS design (Warcraft III, Age of Empires III, StarCraft II):
| Layer | Screen Zone | Elements & Ergonomic Rules |
|---|---|---|
| Macro | Top Bar (36px) |
Gold/Tokens (+rate/min), Lumber/Context %, Supply (used/cap), Upkeep Crest, Idle Worker Alert ([.]), Sun/Moon + Live Local Weather Orb, F10 Game Menu button. |
| Wide | Battlefield Overlays | Left: Hero Roster (F1-F5) with portrait, level, HP/MP bars (click=select, dblclick=center). Right: District/Building Strip (click=select/inspect, dblclick=center). Canvas: elliptical ground selection rings, health/mana plates, floating combat/loot numbers, tactical cursor state. |
| Micro | Bottom Console (168px) |
Left: Minimap + filter toggles (All, Units, Bld, Ping). Center-Left: Animated 3D-Lit Portrait (#portcv). Center: Stats + 6-Slot Runed Inventory / Production Queue. Right: 4x3 Grid Command Card (QWER / ASDF / ZXCV) with vector icons, hotkey badges, and anchored WC3 tooltip above the card. |
2. 4x3 Grid Command Card (Q W E R / A S D F / Z X C V)
- Every slot displays:
- Custom procedural vector SVG/Canvas icon (Sword, Boot, Shield, Patrol Loop, Pickaxe, Arcane Eye, Hammer, Scales, Scroll, War-Drum, Spyglass, Emissary Seal, Horn, Tent, Tome).
- Top-right hotkey badge (
Q,W,E,R,A,S,D,F,Z,X,C,V). - Concise 1-word label (
Move,Stop,Hold,Patrol,Attack,Gather, etc.).
- Anchored WC3 Tooltip (
#cardtip): Hovering any command card button or inventory slot renders a gold-beveled tooltip anchored directly above the bottom console with Title,[Hotkey], Backing CLI/Bundle Surface, and Tactical Effect.
3. Procedural WebAudio DSP Sound Engine
Zero external audio files; synthesize every sound in real time from physical/DSP primitives:
- Continuous Environmental Soundscape (Noise + Biquad Filter Bank):
- Generate a 2-second looping pink/brown noise
AudioBuffer. - Route through a
BiquadFilterNode(bandpassfor wind,highpass+ droplet modulation for rain):- Wind cutoff
180 + 14 * v_kphHz, Q=1.8, gain scaled by wind gust envelope. - Rain adds high-frequency patter (
2200 Hzbandpass) + randomized Karplus-Strong water drips. - Thunder cascades brown noise through a
90 Hzlow-pass filter with multi-tap exponential decay.
- Wind cutoff
- Generate a 2-second looping pink/brown noise
- Metallic & Weapon Synthesis (Inharmonic FM + Bandpass Noise Burst):
- Sword Clash / Attack: Noise burst (
40ms, bandpass2400 Hz) + 3 detuned high-Q partials (780, 1240, 1960 Hz). - Anvil Clang (Runeforge): FM carrier
587 Hz, modulator830 Hz, index decaying over350ms. - Gold Coin / Gather: Dual high sine chimes (
1760 Hz -> 2637 Hz).
- Sword Clash / Attack: Noise burst (
- Theme-Aware Foley (
BattlefieldvsOffice):- Check
Theme.get().name: inofficemode, map unit/building actions to office acoustics (mechanical keyswitch clicks, desk bell ding, espresso steam hiss, printer stepper whir, water-cooler bubble glug).
- Check
04 同仓库更多 Skills
montador-de-ideias
Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.
git-github-adaptive-engineering
Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.
adaptive-agenda-calendar-routine-engine
Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.
demo
Use when demonstrating a skill in a fixture project.
duplicate-skill
Use when testing duplicate skill name detection.
duplicate-skill
Use when testing duplicate skill name detection.