コード例 #1
0
 protected virtual void SwitchMode()
 {
     if (!IsRunning)
     {
         IsRunning = true;
         CollisionAIs.Add(Killai);
         Mutekitime = Mutekimax;
         Owner      = null;
         DESound.Play(Sounds.Killed);
         Velocity.X = Parent.MainEntity.Location.X < Location.X ? Speed : -Speed;
         //Location.X += Velocity.X * 8;
         Velocity.Y = 0;
     }
     else
     {
         IsRunning  = false;
         Mutekitime = Mutekimax;
         if (CollisionAIs.Contains(Killai))
         {
             CollisionAIs.Remove(Killai);
         }
         DESound.Play(Sounds.Stepped);
         Velocity.X = 0;
         Velocity.Y = 0;
     }
 }
コード例 #2
0
 public EntityBlackServer(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
 {
     Location = pnt;
     Mpts     = obj;
     Map      = chips;
     Parent   = par;
     Size     = new Size(16, 32);
     CollisionAIs.Add(new AiKillDefender(this));
 }
コード例 #3
0
 public EntitySpider(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
 {
     Location = new Vector(pnt.X, pnt.Y + 64);
     Mpts     = obj;
     Map      = chips;
     Parent   = par;
     Size     = new Size(16, 16);
     CollisionAIs.Add(new AiKillDefender(this));
 }
コード例 #4
0
 public EntityModokee(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
 {
     Location = pnt;
     Mpts     = obj;
     Map      = chips;
     Parent   = par;
     Size     = new Size(32, 16);
     MainAi   = new AiFlySine(this, 1, 0, 1, 4, 5);
     CollisionAIs.Add(new AiKillDefender(this));
 }
コード例 #5
0
 public EntityArcher(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
 {
     Location = pnt;
     Mpts     = obj;
     Map      = chips;
     Parent   = par;
     Size     = new Size(32, 32);
     MainAi   = new AiArch(this);
     CollisionAIs.Add(new AiKillDefender(this));
 }
コード例 #6
0
 public EntityDensy(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
 {
     Location = pnt;
     Mpts     = obj;
     Map      = chips;
     Parent   = par;
     Size     = new Size(16, 16);
     MainAi   = new AiFlySearch(this, 2, 0, 3, 0, 3);
     CollisionAIs.Add(new AiKillDefender(this));
 }
コード例 #7
0
 public EntityBunyo(Vector pnt, Tile[] obj, byte[,,] chps, EntityList par)
 {
     Mpts     = obj;
     Map      = chps;
     Parent   = par;
     Location = pnt;
     MainAi   = new AiWalk(this, 1, 0, 1, 4, 5);
     CollisionAIs.Add(new AiKillDefender(this));
     Size = new Size(16, 16);
 }
コード例 #8
0
 public EntityPlayer(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
 {
     Location = pnt;
     Mpts     = obj;
     Map      = chips;
     Parent   = par;
     CollisionAIs.Add(new AiKillMonster(this));
     Form = PlayerForm.Big;
     Size = new Size(12, 14);
 }
コード例 #9
0
 public EntityTurbo(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
 {
     Location = pnt;
     Mpts     = obj;
     Map      = chips;
     Parent   = par;
     Size     = new Size(16, 16);
     CollisionAIs.Add(new AiKillDefender(this));
     SetAnime(0, 1, 8);
 }
コード例 #10
0
        public EntitySaba(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
        {
            Location = pnt;
            Mpts     = obj;
            Map      = chips;
            Parent   = par;
            Size     = new Size(16, 16);
            CollisionAIs.Add(new AiKillDefender(this));

            Velocity = new Vector(-2.3f, 0);
        }
コード例 #11
0
        public EntityDaemon(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
        {
            Location = pnt;
            Mpts     = obj;
            Map      = chips;
            Parent   = par;
            Size     = new Size(16, 16);
            MainAi   = new AiWalk(this, 1, 0, 3, 7, 10);

            CollisionAIs.Add(new AiKillDefender(this));
        }
コード例 #12
0
 public EntityQueenBoss(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
 {
     Location = pnt;
     Mpts     = obj;
     Map      = chips;
     Parent   = par;
     CollisionAIs.Add(new AiKillDefender(this));
     InternalGravity = 0.1f;
     _firstLoc       = pnt;
     Tick            = 50;
     _left           = _firstLoc.X - 200;
     Size            = new Size(12, 30);
 }
コード例 #13
0
        public EntityKingBoss(Vector pnt, Tile[] obj, byte[,,] chips, EntityList par)
        {
            Location = pnt;
            Mpts     = obj;
            Map      = chips;
            Parent   = par;
            CollisionAIs.Add(new AiKillDefender(this));
            InternalGravity = 0.1f;
            _firstLoc       = pnt;
            Tick            = 50;
            _left           = _firstLoc.X - 192;
            _top            = _firstLoc.Y - 128;
            Size            = new Size(12, 30);

            var a = (_firstLoc.X - _left) / 5;

            _waza1 = _left + a;
            _waza2 = _waza1 + a;
            _waza3 = _waza2 + a;
        }