Added attack animation for ghots

This commit is contained in:
Vladislav Khorev 2026-04-03 21:54:40 +03:00
parent 403b93e7f5
commit 90e2a369f4
4 changed files with 863471 additions and 0 deletions

File diff suppressed because it is too large Load Diff

433186
resources/w/float_attack003.txt Normal file

File diff suppressed because it is too large Load Diff

BIN
resources/w/ghost_skin001.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -191,6 +191,21 @@ namespace ZL
npc01->setTarget(npc01->position);
npcs.push_back(std::move(npc01));
auto ghostTexture = std::make_shared<Texture>(CreateTextureDataFromPng("resources/w/ghost_skin001.png", CONST_ZIP_FILE));
auto npc02 = std::make_unique<Character>();
//npc02->loadAnimation(AnimationState::IDLE, "resources/w/default_float001.txt", CONST_ZIP_FILE);
npc02->loadAnimation(AnimationState::IDLE, "resources/w/float_attack003.txt", CONST_ZIP_FILE);
npc02->setTexture(ghostTexture);
npc02->walkSpeed = 1.5f;
npc02->rotationSpeed = 8.0f;
npc02->modelScale = 0.01f;
npc02->modelCorrectionRotation = Eigen::Quaternionf(Eigen::AngleAxisf(M_PI, Eigen::Vector3f::UnitY()));
npc02->position = Eigen::Vector3f(0.f, 0.f, -20.f);
npc02->setTarget(npc02->position);
npcs.push_back(std::move(npc02));
loadingCompleted = true;
scriptEngine.init(this);