Effetti sonori per videogiochi — Preset integrati

10 preset audio istantanei per giochi. Clicca su qualsiasi scheda per ascoltare. Una riga di codice = un effetto sonoro.

💥
Laser
Pew pew! Raggio classico
playPreset('laser')
🪙
Moneta
Raccogli quell'oro!
playPreset('moneta')
🏃
Salta
Platformer rimbalzante hop
playPreset('jump')
💣
Esplosione
Grande boato
playPreset('explosion')
Potenziamento
Scansione ascendente di cambio di livello
playPreset('powerup')
💢
Colpo
Impatto del danno inflitto al nemico
playPreset('hit')
💬
Segnale acustico
Cursore menu / clic UI
playPreset('blip')
🔊
Basso
Battito profondo a triangolo
playPreset('bass')
🔫
Sparare
Colpo elettrico a raffica
playPreset('shoot')
💚
1-UP
Fanfara vita extra
playPreset('1up')
Combo — Effetti sonori a catena
// Coin rush — rapid fire coins
for (let i = 0; i < 5; i++)
    setTimeout(() => synth.playPreset('coin'), i * 120);

// Battle: shoot → hit → explosion
synth.playPreset('shoot');
setTimeout(() => synth.playPreset('hit'), 200);
setTimeout(() => synth.playPreset('explosion'), 450);
API rapida
const synth = new ChiptuneSynth();
await synth.init();

// Play any built-in preset
synth.playPreset('laser');
synth.playPreset('coin');
synth.playPreset('explosion');

// Get all preset names
const names = ChiptuneSynth.getPresetNames();
// ['laser','coin','jump','explosion','powerup','hit','blip','bass','shoot','1up']

// Load preset params without playing
synth.loadPreset('powerup');
Realizzato da 8Binami