Demo hosted at Vercel
MonoGame-wasm - Demo
Tried also github pages but deployment took too long.
Lost patience after 5 minutes. So I searched for an alternative.
Found this: Top 5 free website hosting platforms for your next project
and tried Vercel.
Sign-In and deployment in 2 min.
Deployment with GitHub pages had not the expected result.
The *.wasm files were excluded from deployment.
See: https://github.com/friflo/SdlWasmSample-web/actions/runs/8114311717/job/22179648959
Deployment included only these files
./
./README.md
./docs/
./docs/MonoGame/
./docs/MonoGame/index.html
./docs/MonoGame/main.js
./docs/index.html
./index.html
./assets/
./assets/css/
./assets/css/style.css
- Clone the two repositories below in the same folder
https://github.com/friflo/MonoGame/tree/feature/dotnet-wasm
https://github.com/friflo/SdlWasmSample/tree/monogame-net8
Ensure using the exact branches:monogame-net8
anddotnet-wasm
Below the list of files added to repository for static web site hosting.
index.html (copied via devtools)
main.js (copied via devtools)
_framework/
blazor.boot.json
dotnet.js
dotnet.native.8.0.2.sxojud5nuz.js
dotnet.runtime.8.0.2.8j60y5zbay.js
*.wasm
*.dat
The *.wasm and *.dat files are cached by the browser. So subsequent loads are fast.
The resulting folder structure - see MonoGame