mirror of
https://github.com/db48x/emularity.git
synced 2026-09-15 02:52:57 +00:00
add native resolutions and waitAfterDownloading option to the examples
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user