Skip to content

Commit bee652a

Browse files
committed
11
1 parent e5b3d17 commit bee652a

File tree

2 files changed

+98
-11
lines changed

2 files changed

+98
-11
lines changed

dist/acd21a654cbb8c60ede8.js

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

+66-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,74 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>3D Game</title>
7-
<base href="/3D_Game/"> <!-- Sets the base URL for all relative paths -->
8-
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
9-
<script src="https://cdnjs.cloudflare.com/ajax/libs/cannon-es/0.20.0/cannon-es.js"></script>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>3D Game Scene</title>
7+
<style>
8+
body { margin: 0; overflow: hidden; }
9+
canvas { display: block; }
10+
#menu {
11+
display: block; /* Show menu by default */
12+
position: fixed;
13+
top: 0;
14+
left: 0;
15+
width: 100%;
16+
height: 100%;
17+
background-color: rgba(0, 0, 0, 0.8);
18+
text-align: center;
19+
font-family: 'Arial', sans-serif;
20+
}
21+
#menu h1 {
22+
color: #fff;
23+
margin-top: 5%;
24+
font-size: 3rem;
25+
}
26+
#menu button {
27+
display: block;
28+
margin: 20px auto;
29+
padding: 10px 20px;
30+
font-size: 1.5rem;
31+
color: #fff;
32+
background-color: #007bff;
33+
border: none;
34+
cursor: pointer;
35+
border-radius: 5px;
36+
transition: background-color 0.3s;
37+
}
38+
#menu button:hover {
39+
background-color: #0056b3;
40+
}
41+
#menu p {
42+
color: #fff;
43+
font-size: 1.2rem;
44+
max-width: 600px;
45+
margin: 20px auto;
46+
text-align: left;
47+
line-height: 1.5;
48+
}
49+
#clues {
50+
background-color: rgba(0, 0, 0, 0.6);
51+
padding: 20px;
52+
border-radius: 10px;
53+
margin-top: 5%;
54+
}
55+
</style>
1056
<script defer src="/bundle.js"></script></head>
1157
<body>
58+
<div id="menu">
59+
<h1>Game Menu</h1>
1260
<button id="mainButton">Start Game</button>
13-
<div id="menu" style="display:none">Paused</div>
14-
<script src="/9cfdc5b46d4f5ffc21a3.js"></script> <!-- Ensure this file exists in /js folder -->
15-
<script src="/65e73935db8c8c09ec53.js"></script>
16-
<script type="module" src="/9cfdc5b46d4f5ffc21a3.js"></script>
1761

62+
<div id="clues">
63+
<h2 style="color: #fff;">Clues:</h2>
64+
<p><strong>Move:</strong> W, A, S, D</p>
65+
<p><strong>Jump:</strong> Spacebar</p>
66+
<p><strong>Sprint:</strong> Hold Left Control</p>
67+
<p><strong>Pick up object:</strong> Press E when near an object</p>
68+
<p><strong>Throw object:</strong> Press F while holding an object</p>
69+
</div>
70+
</div>
71+
72+
<script src="/acd21a654cbb8c60ede8.js" defer></script>
1873
</body>
19-
</html>
74+
</html>

0 commit comments

Comments
 (0)