- fixed bumpedge test for obstacles - fixed obstacle crash when going to the south or east - added wasm builder
17 lines
477 B
HTML
17 lines
477 B
HTML
<!DOCTYPE html>
|
|
<script src="wasm_exec.js"></script>
|
|
<script>
|
|
// Polyfill
|
|
if (!WebAssembly.instantiateStreaming) {
|
|
WebAssembly.instantiateStreaming = async (resp, importObject) => {
|
|
const source = await (await resp).arrayBuffer();
|
|
return await WebAssembly.instantiate(source, importObject);
|
|
};
|
|
}
|
|
|
|
const go = new Go();
|
|
WebAssembly.instantiateStreaming(fetch("openquell.wasm"), go.importObject).then(result => {
|
|
go.run(result.instance);
|
|
});
|
|
</script>
|