Implemented Battlecry. Debuff/Buff modifiers. Fixed bug where player can auto attack during a ground slam.

pull/28/head
sigonasr2 1 year ago
parent 7598578890
commit 6d4c069fe4
  1. 1
      Crawler/Animation.h
  2. 12
      Crawler/Buff.h
  3. 16
      Crawler/Crawler.cpp
  4. 5
      Crawler/Crawler.h
  5. 1
      Crawler/Crawler.vcxproj
  6. 3
      Crawler/Crawler.vcxproj.filters
  7. 52
      Crawler/Monster.cpp
  8. 4
      Crawler/Monster.h
  9. 72
      Crawler/Player.cpp
  10. 5
      Crawler/Player.h
  11. 2
      Crawler/Version.h
  12. BIN
      Crawler/assets/battlecry_effect.png

@ -13,4 +13,5 @@ enum AnimationState{
RANGER_IDLE_S,RANGER_IDLE_E,RANGER_IDLE_N,RANGER_IDLE_W, RANGER_IDLE_S,RANGER_IDLE_E,RANGER_IDLE_N,RANGER_IDLE_W,
WIZARD_WALK_S,WIZARD_WALK_E,WIZARD_WALK_N,WIZARD_WALK_W, WIZARD_WALK_S,WIZARD_WALK_E,WIZARD_WALK_N,WIZARD_WALK_W,
WIZARD_IDLE_S,WIZARD_IDLE_E,WIZARD_IDLE_N,WIZARD_IDLE_W, WIZARD_IDLE_S,WIZARD_IDLE_E,WIZARD_IDLE_N,WIZARD_IDLE_W,
BATTLECRY_EFFECT,
}; };

@ -0,0 +1,12 @@
#pragma once
enum BuffType{
ATTACK_UP,
DAMAGE_REDUCTION,
SLOWDOWN,
};
struct Buff{
BuffType type;
float duration;
float intensity;
};

@ -41,6 +41,7 @@ bool Crawler::OnUserCreate(){
GFX_BLOCK_BUBBLE.Load("assets/block.png"); GFX_BLOCK_BUBBLE.Load("assets/block.png");
GFX_Ranger_Sheet.Load("assets/nico-ranger.png"); GFX_Ranger_Sheet.Load("assets/nico-ranger.png");
GFX_Wizard_Sheet.Load("assets/nico-wizard.png"); GFX_Wizard_Sheet.Load("assets/nico-wizard.png");
GFX_Battlecry_Effect.Load("assets/battlecry_effect.png");
//Animations //Animations
InitializeAnimations(); InitializeAnimations();
@ -291,6 +292,11 @@ void Crawler::InitializeAnimations(){
} }
ANIMATION_DATA[AnimationState::GROUND_SLAM_ATTACK_BACK]=effect_groundslam_back; ANIMATION_DATA[AnimationState::GROUND_SLAM_ATTACK_BACK]=effect_groundslam_back;
ANIMATION_DATA[AnimationState::GROUND_SLAM_ATTACK_FRONT]=effect_groundslam_front; ANIMATION_DATA[AnimationState::GROUND_SLAM_ATTACK_FRONT]=effect_groundslam_front;
Animate2D::FrameSequence battlecry_effect(0.02f,Animate2D::Style::OneShot);
for(int i=0;i<5;i++){
battlecry_effect.AddFrame({&GFX_Battlecry_Effect,{{i*84,0},{84,84}}});
}
ANIMATION_DATA[AnimationState::BATTLECRY_EFFECT]=battlecry_effect;
} }
bool Crawler::LeftHeld(){ bool Crawler::LeftHeld(){
@ -606,7 +612,7 @@ void Crawler::RenderWorld(float fElapsedTime){
for(Monster&m:monstersBefore){ for(Monster&m:monstersBefore){
m.Draw(); m.Draw();
} }
view.DrawPartialRotatedDecal(player.GetPos()+vf2d{0,-player.GetZ()},player.GetFrame().GetSourceImage()->Decal(),player.GetSpinAngle(),{12,12},player.GetFrame().GetSourceRect().pos,player.GetFrame().GetSourceRect().size,vf2d(player.GetSizeMult(),player.GetSizeMult())); view.DrawPartialRotatedDecal(player.GetPos()+vf2d{0,-player.GetZ()},player.GetFrame().GetSourceImage()->Decal(),player.GetSpinAngle(),{12,12},player.GetFrame().GetSourceRect().pos,player.GetFrame().GetSourceRect().size,vf2d(player.GetSizeMult(),player.GetSizeMult()),player.GetBuffs(BuffType::ATTACK_UP).size()>0?Pixel{255,uint8_t(255*abs(sin(1.4*player.GetBuffs(BuffType::ATTACK_UP)[0].duration))),uint8_t(255*abs(sin(1.4*player.GetBuffs(BuffType::ATTACK_UP)[0].duration)))}:WHITE);
if(player.GetState()==State::BLOCK){ if(player.GetState()==State::BLOCK){
view.DrawDecal(player.GetPos()-vf2d{12,12},GFX_BLOCK_BUBBLE.Decal()); view.DrawDecal(player.GetPos()-vf2d{12,12},GFX_BLOCK_BUBBLE.Decal());
} }
@ -696,6 +702,14 @@ void Crawler::AddEffect(Effect foreground,Effect background){
backgroundEffects.push_back(background); backgroundEffects.push_back(background);
} }
void Crawler::AddEffect(Effect foreground,bool back){
if(back){
backgroundEffects.push_back(foreground);
} else {
foregroundEffects.push_back(foreground);
}
}
vf2d Crawler::GetWorldMousePos(){ vf2d Crawler::GetWorldMousePos(){
return GetMousePos()+view.GetWorldOffset(); return GetMousePos()+view.GetWorldOffset();
} }

@ -14,7 +14,8 @@ class Crawler : public olc::PixelGameEngine
Player player; Player player;
Renderable GFX_Warrior_Sheet,GFX_Slime_Sheet,GFX_Circle, Renderable GFX_Warrior_Sheet,GFX_Slime_Sheet,GFX_Circle,
GFX_Effect_GroundSlam_Back,GFX_Effect_GroundSlam_Front, GFX_Effect_GroundSlam_Back,GFX_Effect_GroundSlam_Front,
GFX_Heart,GFX_BLOCK_BUBBLE,GFX_Ranger_Sheet,GFX_Wizard_Sheet; GFX_Heart,GFX_BLOCK_BUBBLE,GFX_Ranger_Sheet,GFX_Wizard_Sheet,
GFX_Battlecry_Effect;
std::vector<Effect>foregroundEffects,backgroundEffects; std::vector<Effect>foregroundEffects,backgroundEffects;
public: public:
@ -33,6 +34,8 @@ public:
void RenderWorld(float fElapsedTime); void RenderWorld(float fElapsedTime);
void RenderHud(); void RenderHud();
void AddEffect(Effect foreground,Effect background); void AddEffect(Effect foreground,Effect background);
//If back is true, places the effect in the background
void AddEffect(Effect foreground,bool back=false);
void HurtEnemies(vf2d pos,float radius,int damage); void HurtEnemies(vf2d pos,float radius,int damage);
vf2d GetWorldMousePos(); vf2d GetWorldMousePos();
bool LeftHeld(); bool LeftHeld();

@ -164,6 +164,7 @@
<ItemGroup> <ItemGroup>
<ClInclude Include="Ability.h" /> <ClInclude Include="Ability.h" />
<ClInclude Include="Animation.h" /> <ClInclude Include="Animation.h" />
<ClInclude Include="Buff.h" />
<ClInclude Include="Bullet.h" /> <ClInclude Include="Bullet.h" />
<ClInclude Include="Class.h" /> <ClInclude Include="Class.h" />
<ClInclude Include="Crawler.h" /> <ClInclude Include="Crawler.h" />

@ -75,6 +75,9 @@
<ClInclude Include="Version.h"> <ClInclude Include="Version.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="Buff.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="Player.cpp"> <ClCompile Include="Player.cpp">

@ -57,10 +57,18 @@ int Monster::GetHealth(){
return hp; return hp;
} }
int Monster::GetAttack(){ int Monster::GetAttack(){
return atk; float mod_atk=atk;
for(Buff&b:GetBuffs(ATTACK_UP)){
mod_atk+=atk*b.intensity;
}
return int(mod_atk);
} }
float Monster::GetMoveSpdMult(){ float Monster::GetMoveSpdMult(){
return moveSpd; float mod_moveSpd=moveSpd;
for(Buff&b:GetBuffs(SLOWDOWN)){
mod_moveSpd-=moveSpd*b.intensity;
}
return mod_moveSpd;
} }
float Monster::GetSizeMult(){ float Monster::GetSizeMult(){
return size; return size;
@ -113,6 +121,14 @@ void Monster::SetY(float y){
} }
bool Monster::Update(float fElapsedTime){ bool Monster::Update(float fElapsedTime){
if(IsAlive()){ if(IsAlive()){
for(std::vector<Buff>::iterator it=buffList.begin();it!=buffList.end();++it){
Buff&b=*it;
b.duration-=fElapsedTime;
if(b.duration<=0){
it=buffList.erase(it);
if(it==buffList.end())break;
}
}
for(Monster&m:MONSTER_LIST){ for(Monster&m:MONSTER_LIST){
if(&m==this)continue; if(&m==this)continue;
if(geom2d::overlaps(geom2d::circle(pos,12*size/2),geom2d::circle(m.GetPos(),12*m.GetSizeMult()/2))){ if(geom2d::overlaps(geom2d::circle(pos,12*size/2),geom2d::circle(m.GetPos(),12*m.GetSizeMult()/2))){
@ -146,8 +162,8 @@ bool Monster::Update(float fElapsedTime){
target=geom2d::line(pos,game->GetPlayer().GetPos()).upoint(1.2); target=geom2d::line(pos,game->GetPlayer().GetPos()).upoint(1.2);
state=MOVE_TOWARDS; state=MOVE_TOWARDS;
} }
if(state==MOVE_TOWARDS&&geom2d::line(pos,target).length()>100*fElapsedTime*moveSpd){ if(state==MOVE_TOWARDS&&geom2d::line(pos,target).length()>100*fElapsedTime*GetMoveSpdMult()){
SetPosition(pos+geom2d::line(pos,target).vector().norm()*100*fElapsedTime*moveSpd); SetPosition(pos+geom2d::line(pos,target).vector().norm()*100*fElapsedTime*GetMoveSpdMult());
PerformJumpAnimation(); PerformJumpAnimation();
} else { } else {
if(state==MOVE_TOWARDS){ if(state==MOVE_TOWARDS){
@ -163,7 +179,7 @@ bool Monster::Update(float fElapsedTime){
queueShotTimer-=fElapsedTime; queueShotTimer-=fElapsedTime;
if(queueShotTimer<0){ if(queueShotTimer<0){
queueShotTimer=0; queueShotTimer=0;
BULLET_LIST.push_back(Bullet(pos+vf2d{0,-4},geom2d::line(pos+vf2d{0,-4},game->GetPlayer().GetPos()).vector().norm()*24*3.f,2,atk,{75/2,162/2,225/2})); BULLET_LIST.push_back(Bullet(pos+vf2d{0,-4},geom2d::line(pos+vf2d{0,-4},game->GetPlayer().GetPos()).vector().norm()*24*3.f,2,GetAttack(),{75/2,162/2,225/2}));
} }
} }
geom2d::line line(pos,game->GetPlayer().GetPos()); geom2d::line line(pos,game->GetPlayer().GetPos());
@ -203,7 +219,7 @@ bool Monster::Update(float fElapsedTime){
switch(state){ switch(state){
case MOVE_TOWARDS:{ case MOVE_TOWARDS:{
if(moveTowardsLine.length()>1){ if(moveTowardsLine.length()>1){
SetPosition(pos+moveTowardsLine.vector().norm()*100*fElapsedTime*moveSpd); SetPosition(pos+moveTowardsLine.vector().norm()*100*fElapsedTime*GetMoveSpdMult());
} }
if(line.length()<=24*7){ if(line.length()<=24*7){
state=NORMAL; state=NORMAL;
@ -217,7 +233,7 @@ bool Monster::Update(float fElapsedTime){
}break; }break;
case MOVE_AWAY:{ case MOVE_AWAY:{
if(moveTowardsLine.length()>1){ if(moveTowardsLine.length()>1){
SetPosition(pos+moveTowardsLine.vector().norm()*100*fElapsedTime*moveSpd); SetPosition(pos+moveTowardsLine.vector().norm()*100*fElapsedTime*GetMoveSpdMult());
} }
if(line.length()>=24*6){ if(line.length()>=24*6){
state=NORMAL; state=NORMAL;
@ -267,9 +283,9 @@ Key Monster::GetFacingDirection(){
} }
void Monster::Draw(){ void Monster::Draw(){
if(GetFacingDirection()==RIGHT){ if(GetFacingDirection()==RIGHT){
game->view.DrawPartialDecal((GetPos()+vf2d{float(GetFrame().GetSourceRect().size.x),0}*GetSizeMult())-vf2d{12,12}*GetSizeMult(),GetFrame().GetSourceImage()->Decal(),GetFrame().GetSourceRect().pos,GetFrame().GetSourceRect().size,vf2d(GetSizeMult()*-1,GetSizeMult())); game->view.DrawPartialDecal((GetPos()+vf2d{float(GetFrame().GetSourceRect().size.x),0}*GetSizeMult())-vf2d{12,12}*GetSizeMult(),GetFrame().GetSourceImage()->Decal(),GetFrame().GetSourceRect().pos,GetFrame().GetSourceRect().size,vf2d(GetSizeMult()*-1,GetSizeMult()),GetBuffs(BuffType::SLOWDOWN).size()>0?Pixel{uint8_t(255*abs(sin(1.4*GetBuffs(BuffType::SLOWDOWN)[0].duration))),uint8_t(255*abs(sin(1.4*GetBuffs(BuffType::SLOWDOWN)[0].duration))),uint8_t(128+127*abs(sin(1.4*GetBuffs(BuffType::SLOWDOWN)[0].duration)))}:WHITE);
} else { } else {
game->view.DrawPartialDecal(GetPos()-vf2d{12,12}*GetSizeMult(),GetFrame().GetSourceImage()->Decal(),GetFrame().GetSourceRect().pos,GetFrame().GetSourceRect().size,vf2d(GetSizeMult(),GetSizeMult())); game->view.DrawPartialDecal(GetPos()-vf2d{12,12}*GetSizeMult(),GetFrame().GetSourceImage()->Decal(),GetFrame().GetSourceRect().pos,GetFrame().GetSourceRect().size,vf2d(GetSizeMult(),GetSizeMult()),GetBuffs(BuffType::SLOWDOWN).size()>0?Pixel{uint8_t(255*abs(sin(1.4*GetBuffs(BuffType::SLOWDOWN)[0].duration))),uint8_t(255*abs(sin(1.4*GetBuffs(BuffType::SLOWDOWN)[0].duration))),uint8_t(128+127*abs(sin(1.4*GetBuffs(BuffType::SLOWDOWN)[0].duration)))}:WHITE);
} }
} }
void Monster::Collision(Player&p){ void Monster::Collision(Player&p){
@ -311,8 +327,12 @@ AnimationState Monster::GetDeathAnimationName(){
} }
bool Monster::Hurt(int damage){ bool Monster::Hurt(int damage){
if(hp<=0) return false; if(hp<=0) return false;
hp=std::max(0,hp-damage); float mod_dmg=damage;
DAMAGENUMBER_LIST.push_back(DamageNumber(pos,damage)); for(Buff&b:GetBuffs(BuffType::DAMAGE_REDUCTION)){
mod_dmg-=damage*b.intensity;
}
hp=std::max(0,hp-int(mod_dmg));
DAMAGENUMBER_LIST.push_back(DamageNumber(pos,int(mod_dmg)));
if(hp<=0){ if(hp<=0){
animation.ChangeState(internal_animState,GetDeathAnimationName()); animation.ChangeState(internal_animState,GetDeathAnimationName());
} }
@ -347,3 +367,13 @@ void MonsterSpawner::SetTriggered(bool trigger,bool spawnMonsters){
} }
} }
} }
void Monster::AddBuff(BuffType type,float duration,float intensity){
buffList.push_back(Buff{type,duration,intensity});
}
std::vector<Buff>Monster::GetBuffs(BuffType buff){
std::vector<Buff>filteredBuffs;
std::copy_if(buffList.begin(),buffList.end(),std::back_inserter(filteredBuffs),[buff](Buff&b){return b.type==buff;});
return filteredBuffs;
}

@ -64,6 +64,7 @@ struct Monster{
float randomFrameOffset=0.f; float randomFrameOffset=0.f;
float deathTimer=0.f; float deathTimer=0.f;
MonsterName type; MonsterName type;
std::vector<Buff>buffList;
AnimationState GetDeathAnimationName(); AnimationState GetDeathAnimationName();
public: public:
Monster(); Monster();
@ -91,6 +92,9 @@ struct Monster{
void SetY(float y); void SetY(float y);
void PerformJumpAnimation(); void PerformJumpAnimation();
void PerformShootAnimation(); void PerformShootAnimation();
void AddBuff(BuffType type,float duration,float intensity);
std::vector<Buff>GetBuffs(BuffType buff);
}; };
struct MonsterSpawner{ struct MonsterSpawner{

@ -67,11 +67,19 @@ int Player::GetMaxHealth(){
} }
int Player::GetAttack(){ int Player::GetAttack(){
return atk; float mod_atk=atk;
for(Buff&b:GetBuffs(BuffType::ATTACK_UP)){
mod_atk+=atk*b.intensity;
}
return int(mod_atk);
} }
float Player::GetMoveSpdMult(){ float Player::GetMoveSpdMult(){
return moveSpd; float mod_moveSpd=moveSpd;
for(Buff&b:GetBuffs(BuffType::SLOWDOWN)){
mod_moveSpd-=moveSpd*b.intensity;
}
return mod_moveSpd;
} }
float Player::GetSizeMult(){ float Player::GetSizeMult(){
@ -93,6 +101,14 @@ State Player::GetState(){
void Player::Update(float fElapsedTime){ void Player::Update(float fElapsedTime){
attack_cooldown_timer=std::max(0.f,attack_cooldown_timer-fElapsedTime); attack_cooldown_timer=std::max(0.f,attack_cooldown_timer-fElapsedTime);
iframe_time=std::max(0.f,iframe_time-fElapsedTime); iframe_time=std::max(0.f,iframe_time-fElapsedTime);
for(std::vector<Buff>::iterator it=buffList.begin();it!=buffList.end();++it){
Buff&b=*it;
b.duration-=fElapsedTime;
if(b.duration<=0){
it=buffList.erase(it);
if(it==buffList.end())break;
}
}
switch(state){ switch(state){
case SPIN:{ case SPIN:{
switch(facingDirection){ switch(facingDirection){
@ -123,7 +139,7 @@ void Player::Update(float fElapsedTime){
state=NORMAL; state=NORMAL;
spin_angle=0; spin_angle=0;
z=0; z=0;
game->HurtEnemies(pos,3*12,atk*2.5); game->HurtEnemies(pos,3*12,GetAttack()*2.5);
game->AddEffect(Effect{GetPos(),0.5,AnimationState::GROUND_SLAM_ATTACK_FRONT,1.33f,0.6f},Effect{GetPos(),0.5,AnimationState::GROUND_SLAM_ATTACK_BACK,1.33f,0.6f}); game->AddEffect(Effect{GetPos(),0.5,AnimationState::GROUND_SLAM_ATTACK_FRONT,1.33f,0.6f},Effect{GetPos(),0.5,AnimationState::GROUND_SLAM_ATTACK_BACK,1.33f,0.6f});
} }
if(lastAnimationFlip>0){ if(lastAnimationFlip>0){
@ -138,7 +154,6 @@ void Player::Update(float fElapsedTime){
}break; }break;
default:{ default:{
//Update animations normally. //Update animations normally.
moveSpd=1.0;
animation.UpdateState(internal_animState,fElapsedTime); animation.UpdateState(internal_animState,fElapsedTime);
} }
} }
@ -180,6 +195,7 @@ void Player::Update(float fElapsedTime){
if(attack_cooldown_timer==0&&game->GetMouse(0).bHeld){ if(attack_cooldown_timer==0&&game->GetMouse(0).bHeld){
switch (cl) { switch (cl) {
case WARRIOR:{ case WARRIOR:{
if(state!=State::SPIN){
bool attack=false; bool attack=false;
Monster*closest=nullptr; Monster*closest=nullptr;
float closest_dist=999999; float closest_dist=999999;
@ -191,7 +207,7 @@ void Player::Update(float fElapsedTime){
closest=&m; closest=&m;
} }
} }
if(closest!=nullptr&&closest->Hurt(atk)){ if(closest!=nullptr&&closest->Hurt(GetAttack())){
attack_cooldown_timer=ATTACK_COOLDOWN; attack_cooldown_timer=ATTACK_COOLDOWN;
swordSwingTimer=0.2; swordSwingTimer=0.2;
SetState(State::SWING_SWORD); SetState(State::SWING_SWORD);
@ -210,6 +226,32 @@ void Player::Update(float fElapsedTime){
}break; }break;
} }
} }
}
}break;
case THIEF: {
}break;
case RANGER: {
}break;
case BARD: {
}break;
case WIZARD: {
}break;
case WITCH: {
}break;
}
}
if(ability1.cooldown==0&&game->GetKey(SHIFT).bHeld){
switch (cl) {
case WARRIOR: {
game->AddEffect(Effect(pos,0.1,AnimationState::BATTLECRY_EFFECT,1,0.3));
ability1.cooldown=ability1.COOLDOWN_TIME;
AddBuff(BuffType::ATTACK_UP,10,0.1);
AddBuff(BuffType::DAMAGE_REDUCTION,10,0.1);
for(Monster&m:MONSTER_LIST){
if(geom2d::overlaps(geom2d::circle<float>(pos,12*3.5),geom2d::circle<float>(m.GetPos(),m.GetSizeMult()*12))){
m.AddBuff(BuffType::SLOWDOWN,5,0.3);
}
}
}break; }break;
case THIEF: { case THIEF: {
}break; }break;
@ -229,7 +271,7 @@ void Player::Update(float fElapsedTime){
if(GetState()==State::NORMAL){ if(GetState()==State::NORMAL){
rightClickAbility.cooldown=rightClickAbility.COOLDOWN_TIME; rightClickAbility.cooldown=rightClickAbility.COOLDOWN_TIME;
SetState(State::BLOCK); SetState(State::BLOCK);
moveSpd=0.7; AddBuff(BuffType::SLOWDOWN,3,0.3);
} }
}break; }break;
case THIEF: { case THIEF: {
@ -269,8 +311,12 @@ bool Player::HasIframes(){
bool Player::Hurt(int damage){ bool Player::Hurt(int damage){
if(hp<=0||iframe_time!=0) return false; if(hp<=0||iframe_time!=0) return false;
if(state==State::BLOCK)damage=0; if(state==State::BLOCK)damage=0;
hp=std::max(0,hp-damage); float mod_dmg=damage;
DAMAGENUMBER_LIST.push_back(DamageNumber(pos,damage)); for(Buff&b:GetBuffs(BuffType::DAMAGE_REDUCTION)){
mod_dmg-=damage*b.intensity;
}
hp=std::max(0,hp-int(mod_dmg));
DAMAGENUMBER_LIST.push_back(DamageNumber(pos,int(mod_dmg)));
return true; return true;
} }
@ -346,3 +392,13 @@ void Player::UpdateIdleAnimation(Key direction){
} }
UpdateAnimation(anim); UpdateAnimation(anim);
} }
void Player::AddBuff(BuffType type,float duration,float intensity){
buffList.push_back(Buff{type,duration,intensity});
}
std::vector<Buff>Player::GetBuffs(BuffType buff){
std::vector<Buff>filteredBuffs;
std::copy_if(buffList.begin(),buffList.end(),std::back_inserter(filteredBuffs),[buff](Buff&b){return b.type==buff;});
return filteredBuffs;
}

@ -5,6 +5,7 @@
#include "State.h" #include "State.h"
#include "Ability.h" #include "Ability.h"
#include "Class.h" #include "Class.h"
#include "Buff.h"
struct Player{ struct Player{
friend class Crawler; friend class Crawler;
@ -45,6 +46,7 @@ private:
void SetZ(float z); void SetZ(float z);
void SetPos(vf2d pos); void SetPos(vf2d pos);
void SetClass(Class cl); void SetClass(Class cl);
std::vector<Buff>buffList;
protected: protected:
public: public:
Player(); Player();
@ -67,6 +69,9 @@ public:
void UpdateWalkingAnimation(Key direction); void UpdateWalkingAnimation(Key direction);
void UpdateIdleAnimation(Key direction); void UpdateIdleAnimation(Key direction);
void AddBuff(BuffType type,float duration,float intensity);
std::vector<Buff>GetBuffs(BuffType buff);
bool Hurt(int damage); bool Hurt(int damage);
void UpdateAnimation(AnimationState animState); void UpdateAnimation(AnimationState animState);
Animate2D::Frame GetFrame(); Animate2D::Frame GetFrame();

@ -2,7 +2,7 @@
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_PATCH 0 #define VERSION_PATCH 0
#define VERSION_BUILD 31 #define VERSION_BUILD 45
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Loading…
Cancel
Save