Esempio n. 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);
        }
Esempio n. 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);
        }