mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
28 lines
683 B
Markdown
28 lines
683 B
Markdown
|
<h2>NES / Famicom</h2>
|
||
|
|
||
|
Code example
|
||
|
|
||
|
```
|
||
|
<div style="width:640px;height:480px;max-width:100%">
|
||
|
<div id="game"></div>
|
||
|
</div>
|
||
|
<script type="text/javascript">
|
||
|
EJS_player = '#game';
|
||
|
EJS_biosUrl = ''; // Url to Famicom Disk System bios
|
||
|
EJS_gameUrl = ''; // Url to Game rom
|
||
|
EJS_core = 'nes';
|
||
|
EJS_lightgun = false; // Lightgun
|
||
|
EJS_pathtodata = 'data/'; //path to all of the wasm and js files. MUST all be in the same directory!!
|
||
|
</script>
|
||
|
<script src="data/loader.js"></script>
|
||
|
```
|
||
|
Your rom MUST have one of the following extensions
|
||
|
|
||
|
```
|
||
|
.fds
|
||
|
.nes
|
||
|
.unif
|
||
|
.unf
|
||
|
```
|
||
|
You can find the famicon BIOS by looking up the md5 sum which is `ca30b50f880eb660a320674ed365ef7a`
|