nes-js
This is JavaScript NES(Famicom) emulator which runs on browser.
Demo
Screenshot
Features
- iNES format rom image support
- Renders with Canvas
- Audio support with WebAudio
- Runs on browser
Browser
How to use
NPM
How to install
$ npm install nes-js
How to build
$ npm install
$ npm run all
Default key configuration
This table shows the key - joypad configuration set by
window.onkeydown = function(e) { nes.handleKeyDown(e); }; window.onkeyup = function(e) { nes.handleKeyUp(e); };
key | joypad |
---|---|
enter | start |
space | select |
cursor-left | left |
cursor-up | up |
cursor-right | right |
cursor-down | down |
x | A |
z | B |
APIs
T.B.D.
- NesJs
- Nes
- setRom()
- setDisplay()
- setAudio()
- bootup()
- run()
- handleKeyDown()
- handleKeyUp()
- Rom
- Display
- Audio
- Nes
TODO
- Performance optimization
- Support more many mappers
- Support unofficial CPU instructions