Skip to content

Commit

Permalink
Merge pull request #166 from KozmikNano/master
Browse files Browse the repository at this point in the history
Added Obstacle Cube Game to game library.
  • Loading branch information
QuiteAFancyEmerald authored Oct 28, 2021
2 parents ed21558 + 5593c8d commit 81c5042
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 2 deletions.
Binary file added views/archive/g/obstacle-cube/Build/game.data
Binary file not shown.
7 changes: 7 additions & 0 deletions views/archive/g/obstacle-cube/Build/game.framework.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions views/archive/g/obstacle-cube/Build/game.loader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added views/archive/g/obstacle-cube/Build/game.wasm
Binary file not shown.
25 changes: 25 additions & 0 deletions views/archive/g/obstacle-cube/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity WebGL Player | Obstacle cube</title>
</head>
<body style="text-align: center">
<canvas id="unity-canvas" width=960 height=600 style="width: 960px; height: 600px; background: #231F20"></canvas>
<script src="Build/game.loader.js"></script>
<script>
createUnityInstance(document.querySelector("#unity-canvas"), {
dataUrl: "Build/game.data",
frameworkUrl: "Build/game.framework.js",
codeUrl: "Build/game.wasm",
streamingAssetsUrl: "StreamingAssets",
companyName: "KozmikNano",
productName: "Obstacle cube",
productVersion: "0.3",
// matchWebGLToCanvasSize: false, // Uncomment this to separately control WebGL canvas render size and DOM element size.
// devicePixelRatio: 1, // Uncomment this to override low DPI rendering on high DPI displays.
});
</script>
</body>
</html>
5 changes: 3 additions & 2 deletions views/expr/h5-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ var h5gms = {
"faball": "/archive/g/factoryballsforever/index.html",
"trimps": "/archive/g/trimps/index.html",
"sm64": "/archive/g/sm64/index.html#nolag",
"zork": "/archive/g/zork1/index.html"
"zork": "/archive/g/zork1/index.html",
"obstacle-cube": "/archive/g/obstacle-cube/index.html"
};

h5gms_array = Object.keys(h5gms);
Expand All @@ -49,4 +50,4 @@ for (let i = 0; i < h5gms_array.length; i++) {
e.preventDefault();
goFrame(h5gms[h5gms_array[i]], h5gms[h5gms_array[i]].split("#").slice(-1)[0] == "nolag");
}
}
}

0 comments on commit 81c5042

Please sign in to comment.