INNER CODE UNIT · TypeScript

Nes

mantou132/nesbox · packages/fceux/src/index.ts:10

export class Nes implements ONes {
  static new(_outputSampleRate: number) {
    return new Nes();
  }

  #width = 256;
  #height = 240;
  #currentDeQoiLen = 0;
  #currentQoiFrameLen = 0;
  #controllers = new Controllers();
  #sound = false;

  #frameNum = 0;
  #framePixelCount = this.#width * this.#height;
  #frameLen = this.#framePixelCount * 4;
  #frameSpace = [0, this.#frameLen - 1];

  // first 4 byte is qoi length

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…