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/Crawler.h
  2. 2
      Crawler/Player.cpp
  3. 2
      Crawler/Version.h
  4. BIN
      Crawler/assets/nico-warrior.png
  5. BIN
      Crawler/assets/nico-warrior.xcf
  6. BIN
      Crawler/assets/sonicslash.png
  7. BIN
      Crawler/pge.data
  8. 2
      Crawler/pge.js
  9. BIN
      Crawler/pge.wasm

@ -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