mirror of
https://github.com/neon443/neon443.github.io.git
synced 2026-03-11 07:09:12 +00:00
added mario64
This commit is contained in:
97
games/mario64/index.html
Normal file
97
games/mario64/index.html
Normal file
@@ -0,0 +1,97 @@
|
||||
<!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;
|
||||
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="controls">
|
||||
<div id="keyboard">
|
||||
<h2>Keyboard Controls</h2>
|
||||
<ul>
|
||||
<li>Movement: WASD</li>
|
||||
<li>A: L</li>
|
||||
<li>B: ,</li>
|
||||
<li>R: Right Shift</li>
|
||||
<li>Z: K</li>
|
||||
<li>Start: Space</li>
|
||||
<li>C-stick: Arrow Keys</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="controller">
|
||||
<h2>Scroll/PgDown to hide, PgUp to show again.</h2>
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
9483
games/mario64/sm64.us.f3dex2e.js
Normal file
9483
games/mario64/sm64.us.f3dex2e.js
Normal file
File diff suppressed because one or more lines are too long
BIN
games/mario64/sm64.us.f3dex2e.wasm
Normal file
BIN
games/mario64/sm64.us.f3dex2e.wasm
Normal file
Binary file not shown.
BIN
images/mario64/icon.png
Normal file
BIN
images/mario64/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -77,6 +77,10 @@
|
||||
<img src="./images/run3/icon.png" alt="App Icon">
|
||||
<span class="label">Run 3</span>
|
||||
</a>
|
||||
<a href="./games/mario64/" class="app">
|
||||
<img src="./images/mario64/icon.png" alt="App Icon">
|
||||
<span class="label">Super Mario 64</span>
|
||||
</a>
|
||||
</div>
|
||||
<h3>Emulators</h3>
|
||||
<div class="homescreen">
|
||||
@@ -92,6 +96,7 @@
|
||||
</p>
|
||||
<h4>New Games</h4>
|
||||
<p class="indented">
|
||||
14/10/2024 Super Mario 64 Web Port<br>
|
||||
06/10/2024 Nintendo 64 Emulator<br>
|
||||
05/10/2024 Run 3<br>
|
||||
28/09/2024 Google Doodle Champion Island
|
||||
|
||||
Reference in New Issue
Block a user