예제 #1
0
파일: Boss.cs 프로젝트: sergik/Cardio
 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;
 }
예제 #2
0
파일: RangeEnemy.cs 프로젝트: sergik/Cardio
 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;
 }