mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-22 16:49:15 +00:00
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:
parent
12983d6164
commit
e979c065bc
10 changed files with 127 additions and 121 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue