Add Sonic Slash graphics. Fixed Issue #8 such that larger enemies are no longer affected by Battlecry.

pull/28/head
sigonasr2 1 year ago
parent 77bd085908
commit ca151cedd9
  1. 2
      Crawler/Class.cpp
  2. 2
      Crawler/Crawler.h
  3. 2
      Crawler/Player.cpp
  4. 2
      Crawler/Version.h
  5. BIN
      Crawler/assets/nico-warrior.png
  6. BIN
      Crawler/assets/nico-warrior.xcf
  7. BIN
      Crawler/assets/sonicslash.png
  8. BIN
      Crawler/pge.data
  9. 2
      Crawler/pge.js
  10. BIN
      Crawler/pge.wasm

@ -55,4 +55,4 @@ std::map<Class,ClassData>CLASS_DATA={
WARRIOR_WALK_N,WARRIOR_WALK_E,WARRIOR_WALK_S,WARRIOR_WALK_W,
WARRIOR_IDLE_N,WARRIOR_IDLE_E,WARRIOR_IDLE_S,WARRIOR_IDLE_W,
}},
};
};

@ -15,7 +15,7 @@ class Crawler : public olc::PixelGameEngine
Renderable GFX_Warrior_Sheet,GFX_Slime_Sheet,GFX_Circle,
GFX_Effect_GroundSlam_Back,GFX_Effect_GroundSlam_Front,
GFX_Heart,GFX_BLOCK_BUBBLE,GFX_Ranger_Sheet,GFX_Wizard_Sheet,
GFX_Battlecry_Effect,GFX_Mana;
GFX_Battlecry_Effect,GFX_Mana,GFX_SonicSlash;
std::vector<Effect>foregroundEffects,backgroundEffects;
public:

@ -262,7 +262,7 @@ void Player::Update(float fElapsedTime){
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))){
if(m.GetSizeMult()<=1&&geom2d::overlaps(geom2d::circle<float>(pos,12*3.5),geom2d::circle<float>(m.GetPos(),m.GetSizeMult()*12))){
m.AddBuff(BuffType::SLOWDOWN,5,0.3);
}
}

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 156 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.
Loading…
Cancel
Save