Add files via upload

This commit is contained in:
KiNG VaMP 2021-03-12 20:51:43 +00:00 committed by GitHub
parent 5058eca698
commit f770dfdf95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9626 additions and 0 deletions

View file

@ -0,0 +1,25 @@
# SM64-Web
A GitHub re-upload of "https://super-mario-64.surge.sh", a port of the Super Mario 64 PC Port to the web browser. (This is not an identical copy of the original site, I have made a few minor edits, but I am not the original creator.
## Disclaimer
This project is not associated with, or approved by Nintendo. I am not affiliated with the decompilation or porting team. In no event will I take any responsibility for anything that may come from you using this repository. If I am asked to take this down I will, without any disclosure. Proceed at your own risk.
## Keyboard Controls
* Movement: Arrow Keys
* A: X
* B: C
* L: Q
* Z: Spacebar
* Start: Enter
* C-Stick: WASD
## Other Info
* You can save.
* You can use a controller.
* If sound does not work, reload the page and click or make some gesture before the game loads up.
## Play Here
https://knucklehead-mcspazatron.github.io/SM64-Web/

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

View file

@ -0,0 +1,84 @@
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" href="favicon.ico">
<title>Super Mario 64 PC-Port</title>
<style>
body, html{
margin: 0;
padding: 0;
width: 100vw;
min-height: 100vh;
background-color: #111;
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;
}
#controls {
margin-left: 1em;
display: flex;
align-items: center;
}
#controller, #dmca {
padding-left: 4em;
}
</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>

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long