deprecate Emulator.setScale in favor of BaseLoader.setScale

This commit is contained in:
Daniel Brooks
2019-07-15 08:34:07 -07:00
parent e4388d12fa
commit 8ad749e9e7
12 changed files with 25 additions and 19 deletions
+2 -1
View File
@@ -44,6 +44,7 @@
var emulator = new Emulator(document.querySelector("#canvas"),
null,
new NP2Loader(NP2Loader.nativeResolution(512, 342),
NP2Loader.scale(2),
NP2Loader.emulatorJS("emulators/minivmac.js"),
NP2Loader.emulatorWASM("emulators/minivmac.wasm"),
NP2Loader.mountZip("minivmac",
@@ -54,7 +55,7 @@
"examples/test7.dsk")),
NP2Loader.extraArgs(["/emulator/test7.dsk"]),
));
emulator.setScale(3).start({ waitAfterDownloading: true });
emulator.start({ waitAfterDownloading: true });
</script>
</body>