EmulatorJS/docs/Systems/Nintendo Game Boy.md

50 lines
952 B
Markdown
Raw Normal View History

# Nintendo GameBoy
2021-12-20 16:30:29 +00:00
## Code Example
2022-03-26 20:27:49 +00:00
```html
<div style='width:640px;height:480px;max-width:100%'>
<div id='game'></div>
</div>
<script type='text/javascript'>
2021-12-20 16:30:29 +00:00
EJS_player = '#game';
// Can also be gambatte or mgba
2021-12-20 16:30:29 +00:00
EJS_core = 'gb';
// URL to BIOS file
2022-03-26 20:27:49 +00:00
EJS_biosUrl = '';
// URL to Game rom
EJS_gameUrl = '';
// Path to the data directory
2022-03-26 20:27:49 +00:00
EJS_pathtodata = 'data/';
2021-12-20 16:30:29 +00:00
</script>
2022-03-26 20:27:49 +00:00
<script src='data/loader.js'></script>
2021-12-20 16:30:29 +00:00
```
## ROM Type
Your **ROM** can have the following extensions:
- `gb`
- `gbc`
- `dmg`
### BIOS
| File Name | Description | md5sum |
| ----------- | ------------- | ----------- |
| gb_bios.bin | Game Boy BIOS - Optional | 32fbbd84168d3482956eb3c5051637f5 |
| gbc_bios.bin | Game Boy Color BIOS - Optional | dbfce9db9deaa2567f6a84fde55f9680 |
### CORES
2022-03-26 20:27:49 +00:00
The *gb* system supports 2 cores
- `gambatte`
- `mgba`
2021-12-20 16:30:29 +00:00
If set to `gb`, emulator will use the `gambatte` core.
2021-12-20 16:30:29 +00:00