public static EnemyBullet LinearBullet(Texture2D image, Vector2 position, float acceleration, float angle) { var bullet = new EnemyBullet(image, position); bullet.AddBehavior(bullet.movements, bullet.MoveStraight(angle, acceleration)); return(bullet); }
public static EnemyBullet SeekingBullet(Texture2D image, Vector2 position, float acceleration) { var bullet = new EnemyBullet(image, position); bullet.AddBehavior(bullet.movements, bullet.MoveToPlayer(acceleration)); return(bullet); }