/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* SoloGame.js :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: edbernar { Ball.moveBall(); }, 1000); } static dispose() { Map.dispose(); if (renderer) renderer.dispose(); renderer = null; camera = null; if (scene) { scene.children.forEach(child => { if (child.geometry) child.geometry.dispose(); if (child.material) child.material.dispose(); if (child.texture) child.texture.dispose(); scene.remove(child); }); } scene = null; } }; function loop() { stats.begin(); controls.update(); Players.update(); renderer.render(scene, camera); stats.end(); } export { SoloGame };