Ejemplo n.º 1
0
 public void BmMake(int a_nMakedBullet)
 {
     for (int i = 0; i < a_nMakedBullet; ++i)
     {
         BossliPool.Add(new BossMonster());
     }
 }
Ejemplo n.º 2
0
    public void Boss_Update(float a_fDelta)
    {
        BossliTemp.Clear();
        foreach (var val in BossliActive)
        {
            val.Update(a_fDelta);

            foreach (var b_val in BliActive)
            {
                //보스와 플레이어 총알 충돌부분
                if ((int)val.m_vBmPos.x <= (int)b_val.m_vBPos.x &&
                    (int)val.m_vBmPos.x + 56 >= (int)b_val.m_vBPos.x &&
                    (int)val.m_vBmPos.y + 7 >= (int)b_val.m_vBPos.y)
                {
                    BmLife--;
                    b_val.m_fBLife = 0;

                    if (BmLife < 0)
                    {
                        val.m_fBmLife = 0;
                        BmLife        = 0;

                        Console.Clear();
                        clear.CRender();
                    }
                }
            }

            if (val.bIsDie == true)
            {
                val.RenderClear();
                BossliTemp.Add(val);
            }
        }

        foreach (var val in BossliTemp)
        {
            BossliActive.Remove(val);
            BossliPool.Add(val);
        }

        BossliTemp.Clear();
    }