コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }