dont-track-me-google
Firefox and Chrome extensions to prevent Google from making links ugly.
JavaScript★ 587
JavaScript NES(Famicom) emulator
git clone https://github.com/takahirox/nes-js.gittakahirox/nes-jsThis is JavaScript NES(Famicom) emulator which runs on browser.
Demo with Three.js (It has a performance issue!)
WebVR Demo with Three.js (It has a serious performance issue!)
AR Demo with Three.js and jsartoolkit5 (It has a performance issue!)
<head>
<script type="text/javascript" src="https://cdn.rawgit.com/takahirox/nes-js/v0.0.1/build/nes.min.js"></script>
<script type="text/javascript" >
function init() {
var url = 'url to rom image';
var request = new XMLHttpRequest();
request.responseType = 'arraybuffer';
request.onload = function() {
var buffer = request.response;
var nes = new NesJs.Nes();
nes.setRom(new NesJs.Rom(buffer));
nes.setDisplay(new NesJs.Display(document.getElementById('gameCanvas')));
nes.setAudio(new NesJs.Audio());
window.onkeydown = function(e) { nes.handleKeyDown(e); };
window.onkeyup = function(e) { nes.handleKeyUp(e); };
nes.bootup();
nes.run();
};
request.open('GET', url, true);
request.send(null);
}
</script>
</head>
<body onload="init()">
<p>
<canvas id="gameCanvas" width="256" height="240"></canvas>
</p>
</body>
$ npm install nes-js
$ npm install
$ npm run all
This table shows the key - joypad configuration set by
window.onkeydown = function(e) { nes.handleKeyDown(e); };
window.onkeyup = function(e) { nes.handleKeyUp(e); };
| key | joypad |
|---|---|
| enter | start |
| space | select |
| cursor-left | left |
| cursor-up | up |
| cursor-right | right |
| cursor-down | down |
| x | A |
| z | B |
T.B.D.
more like this
Firefox and Chrome extensions to prevent Google from making links ugly.
A C and C++ decompilation of the NES games "Super Mario Bros" and "Super Mario Bros: The Lost Levels"
search projects, people, and tags