mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-15 12:50:01 -04:00
Updated Gameboy Page
This commit is contained in:
parent
5353e9bf94
commit
66adab8463
3 changed files with 82 additions and 177 deletions
10
public/assets/js/config.js
Normal file
10
public/assets/js/config.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
// configuration
|
||||
var opts = {
|
||||
romReaders: [
|
||||
new GameboyJS.RomFileReader(),
|
||||
new GameboyJS.RomDropFileReader(document.getElementById('dropzone'))
|
||||
]
|
||||
};
|
||||
var g = new GameboyJS.Gameboy(document.getElementById('canvas'), opts);
|
||||
g.setSoundEnabled(document.getElementById('sound-enable').checked);
|
||||
g.setScreenZoom(document.getElementById('screen-zoom').value);
|
Loading…
Add table
Add a link
Reference in a new issue