Skip to content
Projects

About

NES emulator written in typescript

Games & Emulation

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

TsNES

NES emulator written in typescript, Online demo

Usage

const emulator = new Emulator(Uint8ArrayNESData, {
  onFrame: frame => {
    ... // output image
  },
  onSample: volume => {
    ... // output audio
  }
});

document.addEventListener('keydown', e => {
  ... // analyse key board code 
  emulator.standardController1.updateButton(StandardControllerButton.A, true);
});

setInterval(() => {
  emulator.frame();
}, 16);

Demo

Here is an demo running in browser

yarn build

Open dist/index.html in your browser, then you can choose any nes file

Explore related projects

Loading…