You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
475 B
11 lines
475 B
#include "DebuffIcon.h"
|
|
|
|
void DebuffIcon::Update(float fElapsedTime){
|
|
pos.y-=6*fElapsedTime;
|
|
lifetime-=fElapsedTime;
|
|
}
|
|
|
|
void DebuffIcon::Draw(TileTransformedView&game){
|
|
game.DrawRotatedDecal(pos,icon->Decal(),0,icon->Sprite()->Size()/2,{1,1},{255,255,255,uint8_t((lifetime/CONSTANT::DEBUFFICON_LIFETIME)*255)});
|
|
game.DrawRotatedDecal(pos+vf2d{4,-4},redXIcon->Decal(),0,icon->Sprite()->Size()/2,{1,1},{255,255,255,uint8_t((lifetime/CONSTANT::DEBUFFICON_LIFETIME)*255)});
|
|
} |