Add audio

This commit is contained in:
asraelite 2018-03-06 20:07:13 +00:00
parent 0101ef8d55
commit 62b8c74f57
26 changed files with 225 additions and 18 deletions

View file

@ -10,6 +10,14 @@ export function render() {
if (graphics.trace) world.tracers.forEach(renderTracer);
world.ships.forEach(renderShip);
world.entities.forEach(renderEntity);
/*
if (typeof window.q === 'undefined') window.q = [];
q.forEach(p => {
context.fillStyle = p[2];
context.fillRect(p[0] - 0.05, p[1] - 0.05, 0.1, 0.1);
});
*/
}
function renderParticle(particle) {