Skip to content

Commit

Permalink
Add bundle.js for GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterofowls committed Sep 11, 2024
1 parent e8956ab commit 2c1d3c0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Game Scene</title>
</head>
<style>
body { margin: 0; overflow: hidden; }
canvas { display: block; }
Expand All @@ -29,13 +30,14 @@
cursor: pointer;
}
</style>
<script defer src="bundle.js"></script></head>
<script src="bundle.js"></script>
<body>
<div id="menu">
<h1>Game Menu</h1>
<button id="resumeButton">Resume Game</button>
</div>

<script src="./dist/bundle.js" defer></script>
<link rel="icon" href="/favicon.ico">
</body>
</html>
Empty file added favicon.ico
Empty file.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ <h1>Game Menu</h1>
</div>

<script src="./dist/bundle.js" defer></script>
<link rel="icon" href="/favicon.ico">

</body>
</html>
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { PointerLockControls } from 'three/examples/jsm/controls/PointerLockCont
import { Reflector } from 'three/examples/jsm/objects/Reflector.js';
import * as CANNON from 'cannon-es';
import Stats from 'three/examples/jsm/libs/stats.module.js';
import glslangModule from '@webgpu/glslang/dist/web-devel/glslang.js';
import glslangModule from 'https://cdn.jsdelivr.net/npm/@webgpu/glslang@0.0.15/dist/web-devel/glslang.js';


// Main variables
let isGameRunning = false;
Expand Down

0 comments on commit 2c1d3c0

Please sign in to comment.