feat: add TEST_MODE
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user