Giter Site home page Giter Site logo

humbertodias / wasm-genplus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from h1romas4/wasm-genplus

0.0 0.0 0.0 6.36 MB

Genesis-Plus-GX WebAssembly porting

Home Page: https://another.maple4ever.net/archives/2749/

JavaScript 0.18% C 99.70% HTML 0.01% CMake 0.11%

wasm-genplus's Introduction

wasm-genplus

Genesis-Plus-GX WebAssembly porting

Build with Local

Require

$ source ./emsdk_env.sh
Adding directories to PATH:
PATH += /home/hiromasa/devel/toolchain/emsdk
PATH += /home/hiromasa/devel/toolchain/emsdk/upstream/emscripten
PATH += /home/hiromasa/devel/toolchain/emsdk/node/12.18.1_64bit/bin

Setting environment variables:
EMSDK = /home/hiromasa/devel/toolchain/emsdk
EM_CONFIG = /home/hiromasa/devel/toolchain/emsdk/.emscripten
EMSDK_NODE = /home/hiromasa/devel/toolchain/emsdk/node/14.15.5_64bit/bin/node

$ emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 2.0.18
clang version 13.0.0 (/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-llvm-llvm--project 94340dd5bb23fb7c4bc7d91d5ac0608eb25660a8)

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

ROM file

Deploy the .bin file

docs/roms

Set path, src/main/js/index.js

const ROM_PATH = './roms/sonic2.bin';

Play

(recommended) Firefox or Safari

http://localhost:9000

Build with Gitpod

Open in Gitpod

Open in Gitpod

Gitpod terminal:

mkdir build && cd build
emcmake cmake ..
emmake make

ROM file

Drag and drop the .bin file

docs/roms/

Set path, src/main/js/index.js

const ROM_PATH = './roms/sonic2.bin';

Play

cd ..
npm run server

License

Genesis-Plus-GX License

Thanks!

Genesis-Plus-GX

wasm-genplus's People

Contributors

h1romas4 avatar humbertodias 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.