mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-30 17:40:47 +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
|
|
@ -7,7 +7,7 @@ import { createChatWindows } from "./domElements/chatWindows";
|
|||
import { logger } from "./logger";
|
||||
import { OrbitControls } from "three/examples/jsm/Addons.js";
|
||||
import { displayInitialPhase } from "./phase";
|
||||
import * as TWEEN from "@tweenjs/tween.js";
|
||||
import { Tween, Group as TweenGroup } from "@tweenjs/tween.js";
|
||||
|
||||
//FIXME: This whole file is a mess. Need to organize and format
|
||||
//
|
||||
|
|
@ -56,10 +56,14 @@ class GameState {
|
|||
unitMeshes: THREE.Group[]
|
||||
|
||||
// Animations needed for this turn
|
||||
unitAnimations: TWEEN.Tween[]
|
||||
unitAnimations: Tween[]
|
||||
|
||||
//
|
||||
playbackTimer: number
|
||||
|
||||
// Camera Animation during playing
|
||||
cameraPanAnim: TweenGroup | undefined
|
||||
|
||||
constructor(boardName: AvailableMaps) {
|
||||
this.phaseIndex = 0
|
||||
this.gameData = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue