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
+2 -1
View File
@@ -12,11 +12,12 @@
var emulator = new Emulator(document.querySelector("#canvas"),
null,
new DosBoxLoader(DosBoxLoader.emulatorJS("emulators/dosbox.js"),
DosBoxLoader.nativeResolution(640, 400),
DosBoxLoader.mountZip("c",
DosBoxLoader.fetchFile("Game File",
"examples/Zzt_1991_Epic_Megagames_Inc.zip")),
DosBoxLoader.startExe("zzt.exe")))
emulator.start();
emulator.start({ waitAfterDownloading: true });
</script>
</body>
</html>