10 presets de audio para juegos instantáneos. Haz clic en cualquier tarjeta para escucharlos. Una línea de código = un efecto de sonido.
// 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); 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');