feat: add TEST_MODE

This commit is contained in:
2026-06-02 03:44:58 -03:00
parent ebda4b281e
commit e4a0c57e79
2 changed files with 8 additions and 7 deletions
+5 -6
View File
@@ -8,7 +8,7 @@ import { Suspense, useEffect, useState } from "react";
import { AmbientSound } from './scene-components/ambient-sound';
import { fearState } from './state';
import { FEAR_SETTINGS, fearState } from './state';
import TheCreature from './scene-components/creature';
import Player from './scene-components/player';
@@ -86,17 +86,16 @@ export default function Fear() {
<color attach="background" args={['#050505']} />
<ambientLight intensity={0.0225} />
{/* <ambientLight intensity={2} /> */}
<fogExp2 attach='fog' args={[0x050505, 0.035]} />
<PostProcessing />
{FEAR_SETTINGS.TEST_MODE ? <ambientLight intensity={2} /> : <ambientLight intensity={0.0225} />}
{FEAR_SETTINGS.TEST_MODE ? null : <fogExp2 attach='fog' args={[0x050505, 0.035]} />}
{FEAR_SETTINGS.TEST_MODE ? null : < PostProcessing />}
<Suspense fallback={null}>
<Hallway />
<TheCreature />
<Player />
</Suspense>
<AmbientSound
key="ambient-1"
url='fear/snd/ambience.mp3'
+3 -1
View File
@@ -15,7 +15,9 @@ export const FEAR_SETTINGS = {
EVENT_FINALE_LOOP_COUNT: 5,
EVENT_FINALE_DURATION: 3,
EVENT_FINALE_TEXT_COUNT: 128
EVENT_FINALE_TEXT_COUNT: 128,
TEST_MODE: false
};
const listeners = new Set<() => void>();