Updated Gameboy Page

This commit is contained in:
TheEmeraldStarr 2020-10-07 20:51:19 -07:00
parent 5353e9bf94
commit 66adab8463
3 changed files with 82 additions and 177 deletions

View 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);