瀏覽代碼

add convenience `.disconnectAndClear` function for experimenting.

Lucas Stadler 12 年之前
父節點
當前提交
32d2773600
共有 1 個文件被更改,包括 6 次插入0 次删除
  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>