-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (52 loc) · 1.33 KB
/
index.html
File metadata and controls
58 lines (52 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>VibeGame Example</title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background: #000;
font-family: Arial, sans-serif;
}
#game-canvas {
display: block;
width: 100vw;
height: 100vh;
}
</style>
</head>
<body>
<Scene canvas="#game-canvas" sky="#87ceeb">
<!-- Procedural terrain with LOD -->
<Terrain
world-size="256"
max-height="50"
levels="6"
resolution="64"
></Terrain>
<!-- Ball above terrain -->
<dynamic-part
pos="0 80 0"
shape="sphere"
size="1.0"
color="#ff4500"
></dynamic-part>
<!-- Deterministic terrain placement: <GameObject place="…"> anchors the root; children use local transforms -->
<GameObject place="at: 0 -12; base-y-offset: 0.02">
<ParticleSystem
preset="fire"
rate="12"
lifetime="1.1"
size="0.14"
transform="pos: 0 0.25 0"
></ParticleSystem>
</GameObject>
</Scene>
<canvas id="game-canvas"></canvas>
<script type="module" src="/src/main.ts"></script>
</body>
</html>