/webchip8

A chip 8 emulator compiled to wasm and running on github pages

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Webchip8

This crate enables running a chip 8 emulator in a web context.

Internally, a thin wrapper around my chip8 crate is exposed via wasm-bindgen. This wrapper can either be run locally, or hosted at github pages using the workflow set up for it.

A running copy of the build artifact is hosted at my Github Pages

Installation

Webchip8 has no requirements other than the one needed for wasm-bindgen. Follow the installation guide for it and afterwards Webchip8 can be run locally from the command line:

  # In the root directory
  wasm-pack build
  cd www
  npm install
  npm run start

Alternatively, you can install the just command runnder, which I like a lot and use it to run locally:

  # In the root directory
  just build
  just run