Work In Progress, Demo coming soon !
npm i
npm run build
Look at the sample/index.html
to see how you can test the emulator
Provide a simple tool to build MAME for javascript with Emscripten in one command line. see https://github.com/mamedev/mame for more informations
The Emscripten compiler is provide by a docker image, Go to http://docker.com to install Docker if you don't have it on your system
First, clone the module with recursion (this can take a while as it will clone MAME github repository):
git clone --recursive [email protected]:ybootin/mamejs.git
Then go to the mamejs
folder, and you can start build your first emulator. For example, you can build Capcom cps1 emulator for running Street Fighters 2 and others super cool games :
./mame-compiler.sh cps1,cps2,segas16a,segas16b
First build will take a long time, due to the fetch of the docker image ybootin/mamejs-compiler
from docker hub.
When everything is finished, it should have build 2 files :
dist/mame.js --> the main emulator, uncompressed
dist/mame.js.gz --> the emulator gzip
Now you can use the mame emulator with the mamejs app !
Upload your emulator here : http://rawgit.com/ybootin/mamejs/master/tools/gamelist-generator.html
It will output all embed drivers into a json file.
You can build your own docker by yourself.
./mame-compiler.sh --builddocker
This can take a while, emscripten compilation take a long time
your help is greatly appreciated !