- fixed bumpedge test for obstacles
- fixed obstacle crash when going to the south or east
- added wasm builder
This commit is contained in:
2024-03-21 09:38:47 +01:00
parent ae0e3a0676
commit 1d16fcb73f
16 changed files with 712 additions and 148 deletions

16
index.html Normal file
View File

@@ -0,0 +1,16 @@
<!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>