friflo / SdlWasmSample-web

Home Page:https://sdl-wasm-sample-web.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test MonoGame-wasm on the Web

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.

Vercel

Sign-In and deployment in 2 min.

Github Pages

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

Setup MonoGame-wasm

Deploy as static web page

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

About

https://sdl-wasm-sample-web.vercel.app


Languages

Language:HTML 100.0%