react-gameboy

React component for playing gameboy roms

Usage no npm install needed!

<script type="module">
  import reactGameboy from 'https://cdn.skypack.dev/react-gameboy';
</script>

README

react-gameboy

A component to emulate and play gameboy roms. Emulator used is Grant Galitz's GameBoy-Online.

Installation

npm i -S react-gameboy

Usage

var React = require('react');
var Gameboy = require('react-gameboy');

var Component = React.createClass({
  render: function() {
    return (
      <Gameboy romData={this.props.romData} opts={this.props.opts}/>
    );
  }
});

Todo

  • Import and export save states
  • Package audio dependency (currently requires external dependency)
  • Support Gamepad API
  • Add emulation speed control