Key sounds

This commit is contained in:
zenoamaro committed 2019-06-27 01:07:10 +02:00
1 parent 2a3867d01b
commit 6dab8504fe
3 files changed
+17 -4

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ export const EXPLOSION_TYPES = {
const {x, y, cr, osc} = explosion;
const f = explosion.cr % 2 === 0 ? 220 + explosion.cr : 0;
osc.frequency.setValueAtTime(f, audio.currentTime);
osc.frequency.setValueAtTime(0, audio.currentTime+1);
osc.frequency.setValueAtTime(0, audio.currentTime+0.1);
drawExplosion(foreground, x, y, cr);
},
clip(explosion, terrain) {