added test spacegame

This commit is contained in:
chrisbell committed 2026-10-05 18:03:52 -05:00
1 parent e55849ffdf
commit 00a46c1390
4 files changed
+10665

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

+40
View File
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spacegame</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #101010;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
canvas.emscripten {
border: 0px none;
background-color: black;
outline: none;
}
</style>
</head>
<body>
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas>
<script type="text/javascript">
var Module = {
print: function(text) { console.log(text); },
printErr: function(text) { console.error(text); },
canvas: (function() {
var canvas = document.getElementById('canvas');
return canvas;
})()
};
</script>
<script async type="text/javascript" src="index.js"></script>
</body>
</html>
+10625
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.