public MonsterTargetBullet(Vector2 position, Monster target, int damage) : base(damage:damage, baseSpeed:3000)
 {
     X = position.X;
     Y = position.Y;
     BulletImage = new Spritemap<string>(Resources.Sprites.Bullets.BULLET_RED_1_1, 12, 12);
     Graphic = BulletImage;
     Graphic.CenterOrigin();
     AddComponent(new ToMonsterMovement(this, target));
     SetHitbox(1, 1, Global.HitBoxTag.Bullet);
 }
예제 #2
0
 public ToMonsterMovement(EntityWithDirection entity, Monster target)
 {
     Target = target;
     EntityWithDirection = entity;
 }
예제 #3
0
 public DamageMonsterEvent(Monster monster, int damage)
     : base(monster)
 {
     Damage = damage;
 }
예제 #4
0
 public MonsterEvent(Monster monster)
 {
     Monster = monster;
 }
예제 #5
0
 public SlowMonsterEvent(Monster monster, float ratio, float duration) : base(monster)
 {
     Duration = duration;
     Ratio = ratio;
 }