GithubHelp home page GithubHelp logo

sdlwasmsample-web's Introduction

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

sdlwasmsample-web's People

Contributors

friflo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.