Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chun-baoluo/nes.wasm
NES/Famicom/Dendy webassembly emulation experiment written in C++
https://github.com/chun-baoluo/nes.wasm
emulator famicom nes wasm
Last synced: about 1 month ago
JSON representation
NES/Famicom/Dendy webassembly emulation experiment written in C++
- Host: GitHub
- URL: https://github.com/chun-baoluo/nes.wasm
- Owner: chun-baoluo
- Created: 2018-08-06T09:22:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T19:52:33.000Z (almost 6 years ago)
- Last Synced: 2024-08-18T13:00:22.940Z (4 months ago)
- Topics: emulator, famicom, nes, wasm
- Language: C++
- Homepage:
- Size: 36.1 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NES.wasm
NES/Famicom emulation experiment written in C++. No emulation yet. At all.
## Installation
First, make sure you have Emscripten installed. Then run the following command in your terminal:
```sh
npm run build
```Include generated nes.js file in your project after compilation.
## Usage
```js
let fileInput = document.querySelector('input[type="file"]');
let canvas = document.querySelector('canvas');
let nes = new NES(canvas);fileInput.onchange = () => {
let fileReader = new FileReader();fileReader.onload = function () {
nes.processRom(fileReader.result);
};fileReader.readAsArrayBuffer(fileInput.files[0]);
};```