(js, wasm, thread)
| 637 | }); |
| 638 | } |
| 639 | initGameCore(js, wasm, thread) { |
| 640 | let script = this.createElement("script"); |
| 641 | script.src = URL.createObjectURL(new Blob([js], { type: "application/javascript" })); |
| 642 | script.addEventListener("load", () => { |
| 643 | this.initModule(wasm, thread); |
| 644 | }); |
| 645 | document.body.appendChild(script); |
| 646 | } |
| 647 | getBaseFileName(force) { |
| 648 | //Only once game and core is loaded |
| 649 | if (!this.started && !force) return null; |
no test coverage detected