Implement mounted monster behavior and animations that run separately from the main monster itself. Added Goblin Boar Rider AI and Goblin Bow (while on Boar Rider) AI. Added spawn of submonster on death of main mounted monster. Release Build 9199.
This commit is contained in:
@@ -253,21 +253,19 @@ void sig::Animation::InitializeAnimations(){
|
||||
Animate2D::FrameSequence goblin_bow_attack_n,goblin_bow_attack_e,goblin_bow_attack_s,goblin_bow_attack_w;
|
||||
//Idle sequences for the mounted boar bow goblin.
|
||||
for(int animationIndex=0;animationIndex<4;animationIndex++){
|
||||
Animate2D::FrameSequence mountAnimation;
|
||||
Animate2D::FrameSequence mountAnimation{0.6f};
|
||||
for(int i=0;i<2;i++){
|
||||
mountAnimation.AddFrame(Animate2D::Frame{&GFX["monsters/commercial_assets/Goblin (Bow)_foreground.png"],{{i*32,animationIndex*32},{32,32}}});
|
||||
}
|
||||
ANIMATION_DATA[std::format("GOBLIN_BOW_MOUNTED_{}",animationIndex)]=mountAnimation;
|
||||
animationIndex++;
|
||||
}
|
||||
//Shooting sequences for the mounted boar bow goblin.
|
||||
for(int animationIndex=0;animationIndex<4;animationIndex++){
|
||||
Animate2D::FrameSequence mountShootAnimation;
|
||||
for(int animationIndex=0;animationIndex<4;animationIndex++){
|
||||
Animate2D::FrameSequence mountShootAnimation{0.06f,Animate2D::Style::OneShot};
|
||||
for(int i=0;i<4;i++){
|
||||
mountShootAnimation.AddFrame(Animate2D::Frame{&GFX["monsters/commercial_assets/Goblin (Bow)_foreground.png"],{{i*32,index*32+4*32},{32,32}}});
|
||||
mountShootAnimation.AddFrame(Animate2D::Frame{&GFX["monsters/commercial_assets/Goblin (Bow)_foreground.png"],{{i*32,animationIndex*32+4*32},{32,32}}});
|
||||
}
|
||||
ANIMATION_DATA[std::format("GOBLIN_BOW_ATTACK_{}",animationIndex)]=mountShootAnimation;
|
||||
animationIndex++;
|
||||
}
|
||||
|
||||
for(auto&dat:GFX){
|
||||
|
||||
Reference in New Issue
Block a user