An open API service indexing awesome lists of open source software.

https://github.com/jsdf/pcejs-embed

easily embed a pcejs emulator anywhere
https://github.com/jsdf/pcejs-embed

Last synced: 20 days ago
JSON representation

easily embed a pcejs emulator anywhere

Awesome Lists containing this project

README

          

# pcejs-embed

A web-based tool for generating an embeddable [PCEJS](https://github.com/jsdf/pce) emulator, with your own custom disks.

## instructions

```bash
# build app JS bundles
npm install
npm run build

# install emulator files and default system disk image
cd lib/
curl -O http://jamesfriend.com.au/pce-js/dist/macplus-system.zip
unzip macplus-system.zip

# grab the extension rom file from the npm package
cp ../node_modules/pcejs-macplus/macplus-pcex.rom ./macplus-pcex.rom

# serve up the lib/ directory
npm install -g http-server
http-server ./ # lib/
open http://localhost:8080/editor.html
```

Add some disk images:
![PCEJS embed editor](http://i.imgur.com/CgyiFyV.png)

Use generated Embed Url to add emulator with disk images to your website. For example:

```html

```

Enjoy

![PCEJS emulator embed](http://i.imgur.com/d6lXlmv.png)