Tweak: remove file input and move guests out from stage in the start
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user