aboutsummaryrefslogtreecommitdiff
path: root/projects/chip8emu/index.html
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-03-10 18:13:33 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-03-10 18:13:33 +0530
commit305b87aaa0c5a5fcab4295f83744831a5cb8586e (patch)
tree5979f725a00ae5f012068436f69e0856d714a5a3 /projects/chip8emu/index.html
parentc1927ab79c96435b325be26eaefda430e929d442 (diff)
progress
Diffstat (limited to 'projects/chip8emu/index.html')
-rw-r--r--projects/chip8emu/index.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/projects/chip8emu/index.html b/projects/chip8emu/index.html
new file mode 100644
index 0000000..e875a05
--- /dev/null
+++ b/projects/chip8emu/index.html
@@ -0,0 +1,24 @@
+---
+title: CHIP8Emu
+layout: project
+---
+<h3>CHIP8Emu</h3>
+
+<p>An emulator for CHIP-8 written in C++</p>
+
+<h3>Try It</h3>
+
+<div class="emscripten" id="status">Downloading...</div>
+<progress value="0" max="100" id="progress" hidden=0></progress>
+<canvas id="canvas" oncontextmenu="event.preventDefault()" tabindex=0></canvas>
+
+<script type="text/javascript" src="module.js"></script>
+<script async type="text/javascript" src="chip8emu.js"></script>
+
+<script>
+ function sendKey(keyCode, eventType) {
+ var c = document.getElementById("canvas");
+ c.focus();
+ c.dispatchEvent(new KeyboardEvent(eventType, {'keyCode': keyCode}));
+ }
+</script>