Example #1
0
 public virtual Bullet GenerateBullet()
 {
     var bullet = new Bullet
     {
         Content = AnimatedObject.FromMetadata(Game.Content.Load<AnimatedObjectMetadata>(BulletContentPath), Game.Content),
         Speed = BulletSpeed,
         HitDamage = AttackDamage
     };
     bullet.Initialize(Game, SpriteBatch, Camera);
     return bullet;
 }
Example #2
0
 public virtual Bullet GenerateBullet()
 {
     var bullet = new Bullet
     {
         Content = AnimatedObject.FromMetadata(Game.Content.Load<AnimatedObjectMetadata>(BulletAssetName), Game.Content),
         Speed = BulletSpeed,
         HitDamage = AttackDamage
     };
     bullet.Initialize(Game, SpriteBatch, Game.Services.GetService<GameState>().Camera);
     return bullet;
 }