Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MeGaL0DoN authored Aug 10, 2024
1 parent 7d6bbc5 commit 6ded61f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions MegaBoy.js

Large diffs are not rendered by default.

Binary file added MegaBoy.wasm
Binary file not shown.
24 changes: 24 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body style="background-color:#000000">
<canvas style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%)" id="canvas" oncontextmenu="event.preventDefault()"></canvas>

<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var Module = {
canvas: (function() { return document.getElementById('canvas'); })()
};
</script>

<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="MegaBoy.js"></script>

</body>

</html>

0 comments on commit 6ded61f

Please sign in to comment.