Exemple #1
0
        //---------------- 加在 Form1.Paint 裡 ----------------//
        public void Paint(Graphics g)
        {
            //----------------背景
            background.Paint(g);
            clouds.Paint(g, new Point(100, 100));
            mountains.Paint(g, new Point(100, 600));
            if (orangeDragon.Enemys <= 0)
            {
                rainbow.Paint(g);
            }
            grass.Paint(g);
            grasses.Paint(g, new Point(100, 658));


            //----------------MainCharacter
            if (step == 1 && explain == null && ExplainPlayBtn == null)
            {
                mainCharactor.Paint(g);
            }
            //----------------Enemys
            if (orangeDragon.Enemys > 0 && step != 0)
            {
                orangeDragon.Paint(g);
                //----------------Items & Character
                stone.Paint(g);
                yellowBird.Paint(g);
                bone.Paint(g);
                //----------------LifePoint
                healthyellow.Paint(g);
                healthorange.Paint(g);
            }

            //換頁效果
            if (step == 0 || step == 2 || step == 3)
            {
                turn.Paint(g);
            }
            //說明頁
            if (explain != null && ExplainPlayBtn != null)
            {
                explain.Paint(g);
                if (explainPage == 1 && Global.Mode > 0)
                {
                    mainCharactor.Paint(g);
                    orangeDragon.Paint(g);
                    bone.Paint(g);
                }

                ExplainPlayBtn.Paint(g);
                rNextBtn.Paint(g);
                lNextBtn.Paint(g);
                if (canPaintHp01 && Global.Mode > 0)
                {
                    oneHp01.Paint(g);
                    if (newt.MilSec(200))
                    {
                        canPaintHp01 = false;
                    }
                }
                if (canPaintHp02 && Global.Mode > 0)
                {
                    oneHp02.Paint(g);
                    if (newt.MilSec(100))
                    {
                        canPaintHp02 = false;
                    }
                }
            }
        }
Exemple #2
0
        //-------------- 放在 Form1.Paint 裡 ---------------//
        public void Paint(Graphics g)
        {
            //------ pinkBackground
            pinkBk.Paint(g);
            if (step == 1)
            {
                //----------------clouds
                clouds.Paint(g, cloudsCenter);

                //------ tinyDragons
                for (int i = 0; i < TINYDRAGON_NUM; i++)
                {
                    if (tinyDragons[i] != null)
                    {
                        tinyDragons[i].Paint(g);
                    }
                }

                //------ healthPts 血條
                for (int i = 0; i < HEALTHPTS_NUM; i++)
                {
                    if (healthPts[i] != null)
                    {
                        healthPts[i].Paint(g);
                    }
                }

                //------ brownDragon 血條
                if (brownDragonHealthPt != null && healthPtCount >= 0)
                {
                    brownDragonHealthPt.Paint(g);
                }

                //------ mainCharator & gun
                if (mainCharator != null)
                {
                    mainCharator.Paint(g);
                }

                //------ brownDragon
                if (brownDragon != null && healthPtCount >= 0)
                {
                    brownDragon._Paint(g);
                }

                //------ fires
                for (int i = 0; i < Fire_MaX_Num; i++)
                {
                    if (fires[i] != null)
                    {
                        fires[i].Paint(g);
                    }
                }
            }

            //換頁效果
            if (step == 0 || step == 2 || step == 3)
            {
                turn.Paint(g);
            }

            //------ 說明頁
            if (explain != null && ExplainPlayBtn != null)
            {
                explain.Paint(g);
                ExplainPlayBtn.Paint(g);
                //rNextBtn.Paint(g);
                //lNextBtn.Paint(g);
            }
        }