https://github.com/h1romas4/wasm-genplus
Genesis-Plus-GX WebAssembly porting
https://github.com/h1romas4/wasm-genplus
emscripten emulator genesis gitpod gitpod-io megadrive wasm webassembly webpack
Last synced: 2 months ago
JSON representation
Genesis-Plus-GX WebAssembly porting
- Host: GitHub
- URL: https://github.com/h1romas4/wasm-genplus
- Owner: h1romas4
- Created: 2019-10-28T11:57:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-31T04:21:34.000Z (10 months ago)
- Last Synced: 2025-03-27T15:47:33.499Z (3 months ago)
- Topics: emscripten, emulator, genesis, gitpod, gitpod-io, megadrive, wasm, webassembly, webpack
- Language: C
- Homepage: https://another.maple4ever.net/archives/2749/
- Size: 6.62 MB
- Stars: 25
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wasm-genplus

[Genesis-Plus-GX](https://github.com/ekeeke/Genesis-Plus-GX) WebAssembly porting

## Build with Local
### Require
* [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html)
```
$ source ./emsdk_env.sh
Setting up EMSDK environment (suppress these messages with EMSDK_QUIET=1)
Adding directories to PATH:
PATH += /home/hiromasa/devel/toolchain/emsdk
PATH += /home/hiromasa/devel/toolchain/emsdk/upstream/emscriptenSetting environment variables:
PATH = /home/hiromasa/devel/toolchain/emsdk:/home/hiromasa/devel/toolchain/emsdk/upstream/emscripten:/home/hiromasa/devel/toolchain/appimage:/home/hiromasa/.wasmtime/bin:/home/hiromasa/devel/msx/z88dk/bin:/home/hiromasa/.wasmer/bin:/home/hiromasa/.local/bin:/home/hiromasa/.cargo/bin:/home/hiromasa/.sdkman/candidates/java/current/bin:/home/hiromasa/.sdkman/candidates/groovy/current/bin:/home/hiromasa/.sdkman/candidates/gradle/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/hiromasa/.dotnet/tools
EMSDK = /home/hiromasa/devel/toolchain/emsdk
EMSDK_NODE = /home/hiromasa/devel/toolchain/emsdk/node/16.20.0_64bit/bin/node$ emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.57 (1df9c1977b49926c1efca672c31414da45c0c7bb)
clang version 19.0.0git (https:/github.com/llvm/llvm-project ccdebbae4d77d3efc236af92c22941de5d437e01)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /home/hiromasa/devel/toolchain/emsdk/upstream/bin
```### Build
**Emscripten**
```
git clone --recursive https://github.com/h1romas4/wasm-genplus.git
cd wasm-genplus
mkdir build && cd build
emcmake cmake ..
emmake make
```**webpack**
```
cd ..
npm install
npm run start
```**Setting**
`.env`
```
ROM_PATH="rom/sonic2.bin"
PORT=9000
```**Play**
(recommended) Firefox or Safari
```
http://localhost:9000
```## Build with Gitpod
**Open in Gitpod**
[](https://gitpod.io/#https://github.com/h1romas4/wasm-genplus)
**Gitpod terminal:**
```
mkdir build && cd build
emcmake cmake ..
emmake make
```**Setting**
`.env`
```
ROM_PATH="rom/sonic2.bin"
PORT=9000
```**Play**
```
cd ..
npm run server
```
## License
[Genesis-Plus-GX](https://github.com/ekeeke/Genesis-Plus-GX/blob/master/LICENSE.txt) License
## Thanks!
[Genesis-Plus-GX](https://github.com/ekeeke/Genesis-Plus-GX)