Tweak: remove file input and move guests out from stage in the start

This commit is contained in:
Dejvino
2025-11-21 23:55:16 +01:00
parent 34a35a69d7
commit 383ba8baf1
3 changed files with 1 additions and 24 deletions
-9
View File
@@ -47,15 +47,6 @@ export function init() {
// 9. Event Listeners
window.addEventListener('resize', onWindowResize, false);
state.fileInput.addEventListener('change', loadVideoFile);
// Button logic
state.loadTapeButton.addEventListener('click', () => {
state.fileInput.click();
});
// Auto-advance to the next video when the current one finishes.
state.videoElement.addEventListener('ended', playNextVideo);
// Start the animation loop
animate();
+1 -1
View File
@@ -69,7 +69,7 @@ export class PartyGuests extends SceneFeature {
const pos = new THREE.Vector3(
(Math.random() - 0.5) * 10,
guestHeight / 2,
(Math.random() * 20) - 12 // Position them in the main hall
(Math.random() * 20) - 6 // Position them in the main hall
);
guest.position.copy(pos);
state.scene.add(guest);