refactoring

This commit is contained in:
2025-12-06 09:29:16 +02:00
parent d8a1a857d0
commit f7955404a9
13 changed files with 54 additions and 79 deletions
@@ -1,7 +1,8 @@
import { Color, Group, EventDispatcher, DoubleSide, RepeatWrapping } from "three"
import { Color, Group, DoubleSide, RepeatWrapping } from "three"
import { EventManager } from '@/lib/EventManager';
import { centerOrigin } from "@/lib/MeshUtils";
class ClassicPuzzle extends EventDispatcher {
class ClassicPuzzle extends EventManager {
emits = ['finish']
constructor(engine, data, objPrefix='Plane'){
super();
@@ -55,6 +56,7 @@ class ClassicPuzzle extends EventDispatcher {
console.log(map )
map.needsUpdate = true;
defaultMaterial.emissiveIntensity=.05
defaultMaterial.lightMapIntensity=10;
console.log(defaultMaterial);
let doneMaterial = defaultMaterial.clone();
doneMaterial.emissive = new Color(10,114,10);