comparison game/js/main.js @ 4:2d46729a022e

sound processing and in-game sounds
author ark
date 2026-10-18 20:58 +0200
parents 5492efd60e2c
children 910b26feca76
comparison
equal deleted inserted replaced
3:cc0c32e71090 4:2d46729a022e
65 view.stats.ms = view.stats.ms * 0.9 + (performance.now() - t0) * 0.1; 65 view.stats.ms = view.stats.ms * 0.9 + (performance.now() - t0) * 0.1;
66 requestAnimationFrame(frame); 66 requestAnimationFrame(frame);
67 } 67 }
68 68
69 window.addEventListener("resize", resize); 69 window.addEventListener("resize", resize);
70 MM.audio.init();
70 MM.input.attach({ 71 MM.input.attach({
71 canvas: canvas, 72 canvas: canvas,
72 view: view, 73 view: view,
73 game: function () { return game; }, 74 game: function () { return game; },
74 layout: function () { return L; }, 75 layout: function () { return L; },