add native resolutions and waitAfterDownloading option to the examples

This commit is contained in:
Daniel Brooks
2015-04-02 19:39:30 -07:00
parent 0ec9153d06
commit d73eea21ff
4 changed files with 39 additions and 29 deletions
+3 -2
View File
@@ -12,15 +12,16 @@
var emulator = new Emulator(document.querySelector("#canvas"),
null,
new JSMESSLoader(JSMESSLoader.driver("a2600"),
JSMESSLoader.nativeResolution(352, 223),
JSMESSLoader.emulatorJS("emulators/messa2600.js"),
JSMESSLoader.mountFile("Pitfall_Activision_1982.bin",
JSMESSLoader.fetchFile("Game File",
"examples/Pitfall_Activision_1982.bin")),
JSMESSLoader.mountFile("a2600.cfg",
JSMESSLoader.fetchFile("Config File",
"emulators/a2600.cfg")),
"examples/a2600.cfg")),
JSMESSLoader.peripheral("cart", "Pitfall_Activision_1982.bin")))
emulator.start();
emulator.setScale(3).start({ waitAfterDownloading: true });
</script>
</body>
</html>