https://github.com/tkomde/assemblyscript-sample
Array and class handling sample for AssemblyScript with loader module
https://github.com/tkomde/assemblyscript-sample
Last synced: over 1 year ago
JSON representation
Array and class handling sample for AssemblyScript with loader module
- Host: GitHub
- URL: https://github.com/tkomde/assemblyscript-sample
- Owner: tkomde
- Created: 2020-11-28T23:38:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T10:13:06.000Z (about 4 years ago)
- Last Synced: 2025-01-22T12:45:32.961Z (over 1 year ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Warning! This repository is obsolete after AssemblyScript 0.20!!
## assemblyscript-sample
Array and class handling sample for AssemblyScript with loader module
## Requirements
- AssemblyScript 0.17
- Webpack 5
## Build and run
`npm run test` automatically compile .ts file and bundle into main.js
1. `npm i`
1. `npm run test`
1. Open `src/index.html` and see developer console
## If you enconter a fetch problem that says '.wasm mimetype is not supported'
Following solutions are available.
- Run on wasm supported http-server like `web_server_simple.js`
- Change buffer loading to normal valiable declaration. `tools/convert_wasm_to_buffer.js` node.js script convert wasm file into Uint8Array declaration.