Stomp on an enemy: squashy thump that springs up
Enemy Hit sound effect
enemy-hit.wav · 110 ms · -18.9 LUFS · One-shot · CC0
enemy-hithitLoop
Take 1/4Enemy flinches: short high blip and smack
DUR 110 msPEAK -1.5 dBFSLOUDNESS -18.9 LUFSPCM 44.1 kHz / 16-bit
Take
Engine integration code
Bus: SFX# Godot 4 (GDScript) — Multi-take AudioStreamRandomizer for enemy-hit
extends Node
var _sfx := AudioStreamRandomizer.new()
@onready var _player := AudioStreamPlayer.new()
func _ready() -> void:
_sfx.add_stream(0, preload("res://audio/hit/enemy-hit_t1.wav"))
_sfx.add_stream(1, preload("res://audio/hit/enemy-hit_t2.wav"))
_sfx.random_pitch = 1.05
_sfx.random_volume_offset_db = 1.2
_player.bus = "SFX"
_player.max_polyphony = 4
_player.stream = _sfx
add_child(_player)
func play_enemy_hit() -> void:
_player.play()// Unity (C#) — Pooled pitch-jittered one-shot playback for enemy-hit
using UnityEngine;
using UnityEngine.Audio;
public class EnemyHitTrigger : MonoBehaviour
{
[SerializeField] private AudioClip[] takes; // Assign enemy-hit_t1..t4.wav
[SerializeField] private AudioMixerGroup mixerGroup; // Route to SFX
private AudioSource[] _pool;
private int _cursor;
private void Awake()
{
_pool = new AudioSource[4];
for (int i = 0; i < _pool.Length; i++)
{
_pool[i] = gameObject.AddComponent<AudioSource>();
_pool[i].playOnAwake = false;
_pool[i].outputAudioMixerGroup = mixerGroup;
}
}
public void PlayEnemyHit()
{
if (takes == null || takes.Length == 0) return;
AudioSource src = _pool[_cursor++ % _pool.Length];
src.pitch = Random.Range(0.96f, 1.04f);
src.PlayOneShot(takes[Random.Range(0, takes.Length)], 0.9f);
}
}// Phaser 3 (JS) — Rate-limited one-shot with detune variance for enemy-hit
preload() {
this.load.audio('enemy-hit', 'audio/hit/enemy-hit.wav');
}
playEnemyHit() {
const now = this.time.now;
if (now - (this._lastEnemyHit ?? 0) < 35) return; // 35ms anti-stack cooldown
this._lastEnemyHit = now;
this.sound.play('enemy-hit', {
volume: 0.85,
detune: Phaser.Math.Between(-50, 50), // cents
});
}// Web Audio API (ES Module) — Zero-dependency playback for enemy-hit
const ctx = new AudioContext();
let enemyHitBuf = null;
export async function loadEnemyHit() {
const res = await fetch('/audio/hit/enemy-hit.wav');
enemyHitBuf = await ctx.decodeAudioData(await res.arrayBuffer());
}
export function playEnemyHit(pitchSemitones = 0) {
if (!enemyHitBuf) return;
if (ctx.state === 'suspended') ctx.resume();
const src = ctx.createBufferSource();
src.buffer = enemyHitBuf;
src.loop = false;
src.playbackRate.value = Math.pow(2, pitchSemitones / 12);
src.connect(ctx.destination);
src.start();
return src;
}
// Construct 3: Import enemy-hit.wav into Project -> Sounds, then run Audio -> Play "enemy-hit" (not looping) on tag "sfx".Acoustic specs & synthesis layers
| Identifier | enemy-hit |
|---|---|
| Category | Hits |
| Playback mode | One-shot |
| Duration | 0.110 s (110 ms) |
| Loudness (400 ms max) | -18.86 LUFS (target -15) |
| True peak / sample peak | -1.21 dBTP / -1.51 dBFS |
| Spectral centroid | 3921 Hz |
| Synthesis FX | Drive |
| Export format | 44,100 Hz · 16-bit PCM Mono WAV |
| License | CC0 1.0 Public Domain |
| Take | Duration | Loudness | True peak | Audition |
|---|---|---|---|---|
| Take 1 | 110 ms | -18.86 LUFS | -1.21 dBTP | |
| Take 2 | 120 ms | -18.93 LUFS | -1.21 dBTP | |
| Take 3 | 110 ms | -18.81 LUFS | -1.13 dBTP | |
| Take 4 | 120 ms | -18.64 LUFS | -1.07 dBTP |
| Layer | Wave | Pitch / sweep | Env (A/H/D) | Filter | Gain |
|---|---|---|---|---|---|
| L1 | square | 900 -> 450 Hz | 1/20/90 ms | LP 5000Hz | 0.80 |
| L2 | noise | Broadband | 1/0/50 ms | BP 3000Hz | 1.00 |
| L3 | sine | 220 -> 110 Hz | 1/0/70 ms | Bypass | 0.60 |
More hits sound effects
All hits SFXArrow thunks into wood
Kick: low thump with a cloth snap
Blade stab into flesh: short wet thrust
Two blades clash and ring
Unsheathe a sword: metallic scrape that rings out