コード例 #1
0
EBStraightLine::EBStraightLine(Vector2& pos_, Vector2& vel_, double length_, double hue_):
pos(pos_),
vel(vel_),
length(length_),
graphicSize(32, 32),
IEnemyBullet(std::make_shared<ColLine>(pos_ - Vector2::GetPolar(length_ * 0.5, vel_.GetAngle()), pos_ + Vector2::GetPolar(length_ * 0.5, vel_.GetAngle())),
hue_, "tilt_rect32")
{
}