Ver Código Fonte

add convenience `.disconnectAndClear` function for experimenting.

Lucas Stadler 12 anos atrás
pai
commit
32d2773600
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      js/pixl/public/index.html

+ 6 - 0
js/pixl/public/index.html

@ -210,6 +210,12 @@
210 210
		};
211 211
212 212
		pixl.connect();
213
214
        pixl.disconnectAndClear = function() {
215
            pixl.disconnect();
216
            pixl.world = {};
217
            pixl.redraw();
218
        }
213 219
	</script>
214 220
</body>
215 221
</html>