v6.7.7
This commit is contained in:
parent
a167ea01ab
commit
8da5458739
3 changed files with 1008 additions and 0 deletions
72
static/sm64/index.html
Normal file
72
static/sm64/index.html
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
|
||||
<!doctype html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Super Mario 64</title>
|
||||
<style>
|
||||
body, html{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
color: white;
|
||||
image-rendering: pixelated;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
#container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
canvas {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<canvas class="emscripten" id="canvas"></canvas>
|
||||
</div>
|
||||
<script type='text/javascript'>
|
||||
var Module = {
|
||||
preRun: [],
|
||||
postRun: [],
|
||||
print: (function() {
|
||||
return function(text) {
|
||||
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
|
||||
console.log(text);
|
||||
};
|
||||
})(),
|
||||
printErr: function(text) {
|
||||
if (arguments.length > 1)
|
||||
text = Array.prototype.slice.call(arguments).join(' ');
|
||||
console.error(text);
|
||||
},
|
||||
canvas: (function() {
|
||||
var canvas = document.getElementById('canvas');
|
||||
canvas.width = window.innerWidth; // Todo: how to do this from c++
|
||||
canvas.height = window.innerHeight;
|
||||
canvas.addEventListener("webglcontextlost", function(e) {
|
||||
alert('WebGL context lost. You will need to reload the page.');
|
||||
e.preventDefault();
|
||||
}, false);
|
||||
return canvas;
|
||||
})(),
|
||||
setStatus: function(text) {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script async type="text/javascript" src="sm64.us.f3dex2e.js"></script>
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
936
static/sm64/sm64.us.f3dex2e.js
Normal file
936
static/sm64/sm64.us.f3dex2e.js
Normal file
File diff suppressed because one or more lines are too long
BIN
static/sm64/sm64.us.f3dex2e.wasm
Normal file
BIN
static/sm64/sm64.us.f3dex2e.wasm
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue