Пример #1
0
        public IProjectile CreateBoomerangItem(SpriteBatch spriteBatch, LinkSprite linkState, Vector2 dir)
        {
            IProjectile newProj = new BoomerangProjectile(spriteBatch, boomerang, linkState, dir, game, ItemConstants.BoomerangTravelDistance);

            projectiles.Add(newProj);
            RoomProjectiles.Instance.projectiles.Add(newProj);
            return(newProj);
        }
Пример #2
0
 public EnemyBoomerangProjectile(SpriteBatch batch, Texture2D texture, ISprite enemy, Vector2 dir, Game1 game, int travelDistance)
 {
     boomerang  = new BoomerangProjectile(batch, texture, enemy, dir, game, travelDistance);
     collidable = new ProjectileCollidable(this, game);
 }