Refactoring: split into directories

This commit is contained in:
Dejvino 2025-11-16 13:25:42 +01:00
parent 1c2a3c6d3a
commit 1f3f5b372c
8 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
import * as THREE from 'three'; import * as THREE from 'three';
import { state } from '../state.js'; import { state } from '../state.js';
import { updateVcrDisplay } from '../vcr-display.js'; import { updateVcrDisplay } from '../scene/vcr-display.js';
function updateCamera() { function updateCamera() {

View File

@ -1,9 +1,9 @@
import * as THREE from 'three'; import * as THREE from 'three';
import { state, initState } from '../state.js'; import { state, initState } from '../state.js';
import { EffectsManager } from '../EffectsManager.js'; import { EffectsManager } from '../effects/EffectsManager.js';
import { createSceneObjects } from '../scene.js'; import { createSceneObjects } from '../scene/scene.js';
import { animate, onWindowResize } from './animate.js'; import { animate, onWindowResize } from './animate.js';
import { loadVideoFile, playNextVideo } from '../video-player.js'; import { loadVideoFile, playNextVideo } from './video-player.js';
// --- Initialization --- // --- Initialization ---
export function init() { export function init() {

View File

@ -1,5 +1,5 @@
import * as THREE from 'three'; import * as THREE from 'three';
import { state } from './state.js'; import { state } from '../state.js';
// --- Play video by index --- // --- Play video by index ---
export function playVideoByIndex(index) { export function playVideoByIndex(index) {

View File

@ -1,5 +1,5 @@
import { DustEffect } from './effects_dust.js'; import { DustEffect } from './dust.js';
import { FliesEffect } from './effects_flies.js'; import { FliesEffect } from './flies.js';
export class EffectsManager { export class EffectsManager {
constructor(scene) { constructor(scene) {

View File

@ -1,6 +1,6 @@
import * as THREE from 'three'; import * as THREE from 'three';
import { state } from './state.js'; import { state } from '../state.js';
import { degToRad } from './utils.js'; import { degToRad } from '../utils.js';
const FLIES_COUNT = 2; const FLIES_COUNT = 2;

View File

@ -1,6 +1,6 @@
import * as THREE from 'three'; import * as THREE from 'three';
import { state } from './state.js'; import { state } from '../state.js';
import { getRandomColor, seededRandom } from './utils.js'; import { getRandomColor, seededRandom } from '../utils.js';
import { createVcrDisplay } from './vcr-display.js'; import { createVcrDisplay } from './vcr-display.js';
// --- Room Walls Function --- // --- Room Walls Function ---

View File

@ -1,6 +1,6 @@
import * as THREE from 'three'; import * as THREE from 'three';
import { state } from './state.js'; import { state } from '../state.js';
import { formatTime } from './utils.js'; import { formatTime } from '../utils.js';
// --- Segment Display Definitions --- // --- Segment Display Definitions ---