|
|
@ -119,6 +119,7 @@ void Monster::STRATEGY::OCTOPUS_ARM(Monster&m,float fElapsedTime,std::string str |
|
|
|
const float alphaTimer{float(std::fmod(game->GetRunTime(),2.f))}; |
|
|
|
const float alphaTimer{float(std::fmod(game->GetRunTime(),2.f))}; |
|
|
|
uint8_t alpha{util::lerp(uint8_t(0),uint8_t(255),alphaTimer)}; |
|
|
|
uint8_t alpha{util::lerp(uint8_t(0),uint8_t(255),alphaTimer)}; |
|
|
|
if(alphaTimer>1.f)alpha=util::lerp(0,255,1-(alphaTimer-1)); |
|
|
|
if(alphaTimer>1.f)alpha=util::lerp(0,255,1-(alphaTimer-1)); |
|
|
|
|
|
|
|
game->DrawShadowStringDecal({100,100},std::format("{} - {}",alpha,alphaTimer)); |
|
|
|
attackArc.Draw(game,{0,0,255,uint8_t(alpha)}); |
|
|
|
attackArc.Draw(game,{0,0,255,uint8_t(alpha)}); |
|
|
|
if(storedArc.has_value()){ |
|
|
|
if(storedArc.has_value()){ |
|
|
|
const uint8_t effectAlpha{util::lerp(uint8_t(0),uint8_t(255),alphaTimer/attackEffectTime)}; |
|
|
|
const uint8_t effectAlpha{util::lerp(uint8_t(0),uint8_t(255),alphaTimer/attackEffectTime)}; |
|
|
|