Add initial game setup with Three.js, including scene, camera, and controls

This commit is contained in:
Simone
2026-03-07 17:12:57 +01:00
parent 211b13e2fe
commit fcd3d1a7e5
14 changed files with 222 additions and 0 deletions
Executable
+41
View File
@@ -0,0 +1,41 @@
:root {
--top: 10px;
--border: 20px;
--text: 1.5rem;
}
body {
margin: 0;
overflow: hidden;
font-family: sans-serif;
}
#punti {
position: absolute;
top: var(--top);
left: var(--border);
color: white;
font-size: var(--text);
pointer-events: none;
display: none;
}
#tempo {
position: absolute;
top: var(--top);
right: var(--border);
color: white;
font-size: var(--text);
pointer-events: none;
display: none;
}
#start {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}