Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (41 sloc) 2.71 KB
<!-- The Emularity: An Example Console Loader -->
<!-- For use with The Emularity, downloadable at -->
<!-- SIMPLE STEPS to trying an emulated console ("Halo 2600" for the Atari VCS) -->
<!-- * Check out this repository in your browser-accessible directory;
this file as well as es6-promise.js, browserfs.min.js and
loader.js are required. The logo and images directories are
optional, but the splash screen looks quite a lot better when
they're available. -->
<!-- * Use "git annex get <file>" to download emulators/jsmess/messa2600.js.gz;
if you don't have git-annex you can download it from IA manually
( -->
<!-- * Download the Halo 2600 from -->
<!-- * Place the atari_2600_halo_2600.bin file in an "examples" subdirectory. -->
<!-- * Visit your example_console.html file with a modern Javascript-capable browser. -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>example console game</title>
<canvas id="canvas" style="width: 50%; height: 50%; display: block; margin: 0 auto;"/>
<script type="text/javascript" src="es6-promise.js"></script>
<script type="text/javascript" src="browserfs.min.js"></script>
<script type="text/javascript" src="loader.js"></script>
<script type="text/javascript">
var emulator = new Emulator(document.querySelector("#canvas"),
new JSMESSLoader(JSMESSLoader.driver("a2600"),
JSMESSLoader.nativeResolution(352, 223),
JSMESSLoader.fetchFile("Game File",
JSMESSLoader.fetchFile("Config File",
JSMESSLoader.peripheral("cart", "atari_2600_halo_2600.bin")))
emulator.setScale(3).start({ waitAfterDownloading: true });