diff --git a/src/App.tsx b/src/App.tsx index c8cf5bf..d237dff 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -42,7 +42,11 @@ const App = () => { return (
- + {/**/} {dispatchScene[currentScene as keyof typeof dispatchScene]} diff --git a/src/components/GateScene/GateMiddleObject/BlueDigit.tsx b/src/components/GateScene/GateMiddleObject/BlueDigit.tsx index f36a075..555420e 100644 --- a/src/components/GateScene/GateMiddleObject/BlueDigit.tsx +++ b/src/components/GateScene/GateMiddleObject/BlueDigit.tsx @@ -71,7 +71,7 @@ const BlueDigit = (props: BlueDigitProps) => { return ( { if (event) handleEvent(event); } - if (now > props.idleSceneTimerRef.current + 500000) { - // put it on lock until the next action, since while the idle media plays, the - // Date.now() value keeps increasing, which can result in another idle media playing right after one finishes - // one way to work around this would be to modify the value depending on the last played idle media's duration - // but i'm way too lazy for that - props.idleSceneTimerRef.current = -1; - - playAudio(audio.sound32); - - const data = getRandomIdleMedia(); - - const { type, nodeName, images, media } = data; - let event; - if (type === "audio" && images && nodeName) { - event = playIdleAudio({ - idleNodeName: nodeName, - idleImages: images, - idleMedia: media, - }); - } else if (type === "video") { - event = playIdleVideo({ idleMedia: media }); - } - - if (event) handleEvent(event); - } + // if (now > props.idleSceneTimerRef.current + 5000) { + // // put it on lock until the next action, since while the idle media plays, the + // // Date.now() value keeps increasing, which can result in another idle media playing right after one finishes + // // one way to work around this would be to modify the value depending on the last played idle media's duration + // // but i'm way too lazy for that + // props.idleSceneTimerRef.current = -1; + // + // playAudio(audio.sound32); + // + // const data = getRandomIdleMedia(); + // + // const { type, nodeName, images, media } = data; + // let event; + // if (type === "audio" && images && nodeName) { + // event = playIdleAudio({ + // idleNodeName: nodeName, + // idleImages: images, + // idleMedia: media, + // }); + // } else if (type === "video") { + // event = playIdleVideo({ idleMedia: media }); + // } + // + // if (event) handleEvent(event); + // } } }); diff --git a/src/components/MainScene/Popups/About.tsx b/src/components/MainScene/Popups/About.tsx index c54b825..55b359b 100644 --- a/src/components/MainScene/Popups/About.tsx +++ b/src/components/MainScene/Popups/About.tsx @@ -10,8 +10,6 @@ const About = () => { const aboutBgTex = useLoader(THREE.TextureLoader, aboutBg); const bgRef = useRef(); - // todo im not sure where the other bg file is located, - // the one here is just the text, in the original game there's another one useFrame(() => { if (bgRef.current) { diff --git a/src/components/MediaPlayer.tsx b/src/components/MediaPlayer.tsx index e060a5d..1c9c3cc 100644 --- a/src/components/MediaPlayer.tsx +++ b/src/components/MediaPlayer.tsx @@ -59,7 +59,7 @@ const MediaPlayer = () => { return ( <> -