@ -182,8 +182,8 @@ void Bullet::Draw(const Pixel blendCol)const{
if ( animated ) {
if ( animated ) {
game - > view . DrawPartialRotatedDecal ( pos - vf2d { 0 , GetZ ( ) } + drawOffsetY , GetFrame ( ) . GetSourceImage ( ) - > Decal ( ) , rotates ? atan2 ( vel . y , vel . x ) - PI / 2 + image_angle : image_angle , GetFrame ( ) . GetSourceRect ( ) . size / 2 , GetFrame ( ) . GetSourceRect ( ) . pos , GetFrame ( ) . GetSourceRect ( ) . size , scale , blendCol ) ;
game - > view . DrawPartialRotatedDecal ( pos - vf2d { 0 , GetZ ( ) } + drawOffsetY , GetFrame ( ) . GetSourceImage ( ) - > Decal ( ) , rotates ? atan2 ( vel . y , vel . x ) - PI / 2 + image_angle : image_angle , GetFrame ( ) . GetSourceRect ( ) . size / 2 , GetFrame ( ) . GetSourceRect ( ) . pos , GetFrame ( ) . GetSourceRect ( ) . size , scale , blendCol ) ;
} else {
} else {
game - > view . DrawRotatedDecal ( pos - vf2d { 0 , GetZ ( ) } + drawOffsetY - GFX [ " circle.png " ] . Sprite ( ) - > Size ( ) * scale / 2 , GFX [ " circle.png " ] . Decal ( ) , image_angle , GFX [ " circle.png " ] . Sprite ( ) - > Size ( ) / 2 , scale , blendCol ) ;
game - > view . DrawRotatedDecal ( pos - vf2d { 0 , GetZ ( ) } + drawOffsetY , GFX [ " circle.png " ] . Decal ( ) , image_angle , GFX [ " circle.png " ] . Sprite ( ) - > Size ( ) / 2.f , scale , blendCol ) ;
game - > view . DrawRotatedDecal ( pos - vf2d { 0 , GetZ ( ) } + drawOffsetY - GFX [ " circle.png " ] . Sprite ( ) - > Size ( ) * scale / 2 , GFX [ " circle_outline.png " ] . Decal ( ) , image_angle , GFX [ " circle.png " ] . Sprite ( ) - > Size ( ) / 2 , scale , Pixel { WHITE . r , WHITE . g , WHITE . b , blendCol . a } ) ;
game - > view . DrawRotatedDecal ( pos - vf2d { 0 , GetZ ( ) } + drawOffsetY , GFX [ " circle_outline.png " ] . Decal ( ) , image_angle , GFX [ " circle.png " ] . Sprite ( ) - > Size ( ) / 2.f , scale , Pixel { WHITE . r , WHITE . g , WHITE . b , blendCol . a } ) ;
}
}
}
}