WIP: Adding some animations, as well as tween'd camera movement

The tween'd movement is non-blocking and therefor stutters less. Only
issue is it doesn't go to the correct path yet.
This commit is contained in:
Tyler Marques 2025-03-25 11:39:39 -04:00
parent 12983d6164
commit e979c065bc
No known key found for this signature in database
GPG key ID: 7672EFD79378341C
10 changed files with 127 additions and 121 deletions

View file

@ -1,7 +1,6 @@
import * as THREE from "three";
import { currentPower, gameState } from "../gameState";
import { config } from "../config";
import { createTweenAnimations } from "../units/animate";
import { advanceToNextPhase } from "../phase";
let faceIconCache = {}; // Cache for generated face icons
@ -222,7 +221,6 @@ export function updateChatWindows(phase: any, stepMessages = false) {
if (config.isDebugMode) {
console.log(`Animating orders from ${previousPhase.name} to ${currentPhase.name}`);
}
createTweenAnimations(currentPhase, previousPhase);
// After animations complete, advance to next phase with longer delay
gameState.playbackTimer = setTimeout(() => {