示例#1
0
 public override void Draw(SpriteBatch P)
 {
     base.Draw(P);
     if (MISS_BOB != null)
     {
         MISS_BOB.Draw(P);
         MISS_BOB.update();
     }
 }
示例#2
0
        public void BOB_update()
        {
            if (BOB != null)
            {
                BOB.update();

                if (!BOB.T)
                {
                    BOB_END = true;//爆炸效果結束
                }
                return;
            }
        }
示例#3
0
        public void Draw(SpriteBatch P)
        {
            ballsDraw(P);
            hero.draw(P);
            Hp.Draw(P);
            BulletBAR.draw(P);
            BulletImg.draw(P);
            if (dead)
            {
                //英雄死亡 爆炸特效
                if (deadSec == 75)
                {
                    GamePage.effectHeroDead.Play(0.8f, 1f, 0f);
                }
                else if (deadSec == 60 || deadSec == 50 || deadSec == 40 || deadSec == 30 || deadSec == 20)
                {
                    GamePage.effectHeroDead.Play(0.7f, 0.5f, 0f);
                }
                else if (deadSec == 15)
                {
                    GamePage.effectHeroDead.Play(1f, -0.5f, 0f);
                }


                hero.Y     += 2.5f;
                hero_dead.X = hero.X;
                hero_dead.Y = hero.Y;
                hero_dead.draw(P);

                if (deadSec == 0)
                {
                    GamePage.R_MENU_DEAD = new MENU_DEAD(GamePage.R_LV.getGP());
                    GamePage.LOCAL       = "死亡";
                }
                deadSec--;
            }
            else
            {
                if (MISS_BOB != null)
                {
                    MISS_BOB.Draw(P);
                    MISS_BOB.update();
                }
            }
        }