参考
必須パッケージインストール
sudo npm install -g node-cli
sudo npm install -g grunt-cli
.gitignore
-
npm install
で./node_modules/
が生成されるため除外。
.gitignore
node_modules/
動かしてみた
JSNES
ビルド
git clone https://github.com/GusCaplan/jsnes.git
cd jsnes
npm install
grunt
webサーバ起動
python -m SimpleHTTPServer
-
http://localhost:8000 にアクセス
- フォルダ全体を別のwebサーバに移しても動作する。
- firefoxだと遅い(chromeの半分程度)。音出る。
- chrominium: 早い。音出ない
- google-chrome: 早い。音出る
OS.js-v2
ビルド
git clone https://github.com/andersevenrud/OS.js-v2.git
cd OS.js-v2
npm install
grunt
起動
./bin/start-dist.sh
- http://localhost:8000 にアクセス
- メモを作成すると以下に保存される。
- ./vfs/home/demo/メモ1.odoc
c -> js
snes
sudo apt-get install -y emscripten
git clone https://github.com/tjwei/xnes.git
cd xnes
./buildall