Get the FREE Ultimate OpenClaw Setup Guide →

game-audio

Scanned
npx machina-cli add skill vudovn/antigravity-kit/game-audio --openclaw
Files (1)
SKILL.md
5.2 KB

Game Audio Principles

Sound design and music integration for immersive game experiences.


1. Audio Category System

Category Definitions

CategoryBehaviorExamples
MusicLooping, crossfade, duckingBGM, combat music
SFXOne-shot, 3D positionedFootsteps, impacts
AmbientLooping, background layerWind, crowd, forest
UIImmediate, non-3DButton clicks, notifications
VoicePriority, ducking triggerDialogue, announcer

Priority Hierarchy

When sounds compete for channels:

1. Voice (highest - always audible)
2. Player SFX (feedback critical)
3. Enemy SFX (gameplay important)
4. Music (mood, but duckable)
5. Ambient (lowest - can drop)

2. Sound Design Decisions

SFX Creation Approach

ApproachWhen to UseTrade-offs
RecordingRealistic needsHigh quality, time intensive
SynthesisSci-fi, retro, UIUnique, requires skill
Library samplesFast productionCommon sounds, licensing
LayeringComplex soundsBest results, more work

Layering Structure

LayerPurposeExample: Gunshot
AttackInitial transientClick, snap
BodyMain characterBoom, blast
TailDecay, roomReverb, echo
SweetenerSpecial sauceShell casing, mechanical

3. Music Integration

Music State System

Game State → Music Response
│
├── Menu → Calm, loopable theme
├── Exploration → Ambient, atmospheric
├── Combat detected → Transition to tension
├── Combat engaged → Full battle music
├── Victory → Stinger + calm transition
├── Defeat → Somber stinger
└── Boss → Unique, multi-phase track

Transition Techniques

TechniqueUse WhenFeel
CrossfadeSmooth mood shiftGradual
StingerImmediate eventDramatic
Stem mixingDynamic intensitySeamless
Beat-syncedRhythmic gameplayMusical
Queue pointNext natural breakClean

4. Adaptive Audio Decisions

Intensity Parameters

ParameterAffectsExample
Threat levelMusic intensityEnemy count
HealthFilter, reverbLow health = muffled
SpeedTempo, energyRacing speed
EnvironmentReverb, EQCave vs outdoor
Time of dayMood, volumeNight = quieter

Vertical vs Horizontal

SystemWhat ChangesBest For
Vertical (layers)Add/remove instrument layersIntensity scaling
Horizontal (segments)Different music sectionsState changes
CombinedBothAAA adaptive scores

5. 3D Audio Decisions

Spatialization

Element3D Positioned?Reason
Player footstepsNo (or subtle)Always audible
Enemy footstepsYesDirectional awareness
GunfireYesCombat awareness
MusicNoMood, non-diegetic
Ambient zoneYes (area)Environmental
UI soundsNoInterface feedback

Distance Behavior

DistanceSound Behavior
NearFull volume, full frequency
MediumVolume falloff, high-freq rolloff
FarLow volume, low-pass filter
MaxSilent or ambient hint

6. Platform Considerations

Format Selection

PlatformRecommended FormatReason
PCOGG Vorbis, WAVQuality, no licensing
ConsolePlatform-specificCertification
MobileMP3, AACSize, compatibility
WebWebM/Opus, MP3 fallbackBrowser support

Memory Budget

Game TypeAudio BudgetStrategy
Mobile casual10-50 MBCompressed, fewer variants
PC indie100-500 MBQuality focus
AAA1+ GBFull quality, many variants

7. Mix Hierarchy

Volume Balance Reference

CategoryRelative LevelNotes
Voice0 dB (reference)Always clear
Player SFX-3 to -6 dBProminent but not harsh
Music-6 to -12 dBFoundation, ducks for voice
Enemy SFX-6 to -9 dBImportant but not dominant
Ambient-12 to -18 dBSubtle background

Ducking Rules

WhenDuck WhatAmount
Voice playsMusic, Ambient-6 to -9 dB
ExplosionAll except explosionBrief duck
Menu openGameplay audio-3 to -6 dB

8. Anti-Patterns

Don'tDo
Play same sound repeatedlyUse variations (3-5 per sound)
Max volume everythingUse proper mix hierarchy
Ignore silenceSilence creates contrast
One music track loops foreverProvide variety, transitions
Skip audio in prototypePlaceholder audio matters

Remember: 50% of the game experience is audio. A muted game loses half its soul.

Source

git clone https://github.com/vudovn/antigravity-kit/blob/main/.agent/skills/game-development/game-audio/SKILL.mdView on GitHub

Overview

This skill covers organizing game audio into categories, prioritizing channels, and integrating music with adaptive systems. It emphasizes sound design decisions, music transitions, and 3D audio practices to create immersive experiences while managing platform constraints.

How This Skill Works

First, define Audio Categories (Music, SFX, Ambient, UI, Voice) and a Priority Hierarchy to arbitrate channels. Next, design SFX with a layered structure (Attack, Body, Tail, Sweetener) and attach music via a Music State System that maps game states to appropriate themes. Finally, implement Adaptive Audio using intensity parameters (threat level, health, speed, environment, time of day) and apply 3D spatialization rules with distance behavior, plus platform-aware format choices.

When to Use It

  • When designing an audio system that responds to game states (menu, exploration, combat, boss encounters).
  • When balancing voice, player SFX, enemy SFX, and music on limited channels using a clear priority order.
  • When implementing 3D audio cues like enemy footsteps and ambient zones for spatial awareness.
  • When applying adaptive music transitions based on threat, health, speed, and environment.
  • When targeting multiple platforms with platform-specific formats and memory considerations.

Quick Start

  1. Step 1: Define Audio Categories (Music, SFX, Ambient, UI, Voice) and a Priority Hierarchy.
  2. Step 2: Design layered SFX (Attack/Body/Tail/Sweetener) and implement a Music State System for transitions.
  3. Step 3: Add Adaptive Audio with intensity parameters and 3D spatial rules; choose platform formats (PC: OGG/WAV, Mobile: MP3/AAC).

Best Practices

  • Define clear Audio Categories and a Priority Hierarchy to resolve channel conflicts.
  • Plan SFX layering: Attack, Body, Tail, and Sweetener for richer sounds.
  • Implement a Music State System that maps game states to mood-specific music and transitions.
  • Use intensity parameters (threat level, health, speed, environment, time of day) to drive adaptivity.
  • Design with platform formats and memory budgets in mind (OGG/WAV on PC, MP3/AAC on mobile, etc.).

Example Use Cases

  • Menu → Calm loop music; Exploration → Ambient, atmospheric; Combat → Transition to tension; Victory/Defeat → Stinger with mood shift; Boss → Unique multi-phase track.
  • Gunshot sounds built from Attack (initial click), Body (main blast), Tail (reverb/echo), and Sweetener (shell casing/metallic nuance).
  • Enemy footsteps and gunfire are 3D positioned; Player footsteps kept subtle to avoid masking important cues; Ambient zones drive area-specific reverb.
  • Dialogue priority ensures Voice overrides or ducks other sounds for clear speech.
  • Environment-based reverb changes when moving between cave-like and outdoor areas; memory-conscious format choices per platform.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers