Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NES emulator written in typescript

Resources

Stars

205 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages