Feature: door randomly opens and closes

This commit is contained in:
Dejvino
2025-11-16 14:07:06 +01:00
parent 15cb69a120
commit 6d54f4b15a
3 changed files with 69 additions and 7 deletions
+4 -2
View File
@@ -1,13 +1,14 @@
import * as THREE from 'three';
import { state } from '../state.js';
import { updateVcrDisplay } from '../scene/vcr-display.js';
import { updateDoor } from '../scene/door.js';
import { state } from '../state.js';
function updateCamera() {
const globalTime = Date.now() * 0.00005;
const lookAtTime = Date.now() * 0.00003;
const camAmplitude = 0.7;
const camAmplitude = 0.5;
const lookAmplitude = 0.05;
// Base Camera Position in front of the TV
@@ -97,6 +98,7 @@ export function animate() {
updateScreenLight();
updateVideo();
updateVcr();
updateDoor();
// RENDER!
state.renderer.render(state.scene, state.camera);