Ejemplo n.º 1
0
 public void DrawImages(Graphics g)
 {
     background.Paint(g);
     foot.Paint(g, dragon);
     dragon.Paint(g);
     playButton.Paint(g);
     superragonLogo.Paint(g);
     turn.Paint(g);
 }
Ejemplo n.º 2
0
        //-------------Form 呼叫的 Paint-------------//
        public void Paint(Graphics g)
        {
            Background.Paint(g);

            //------ 遊戲開始
            if (step == 1)
            {
                RainBow.Paint(g);
                if (WingL != null)
                {
                    WingL.Paint(g);
                }
                if (WingR != null)
                {
                    WingR.Paint(g);
                }
                Cloud.Paint(g);
                mainCharactor.Paint(g);
                stone.Paint(g);
                yellowBird.Paint(g);
            }

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

            //------ 說明頁
            if (explain != null && ExplainPlayBtn != null)
            {
                explain.Paint(g);
                ExplainPlayBtn.Paint(g);
                if (Global.Mode != 0)
                {
                    rNextBtn.Paint(g);
                    lNextBtn.Paint(g);
                }
                if (explainPage == 1)
                {
                    WingL.Paint(g);
                    WingR.Paint(g);
                }
            }
        }
Ejemplo n.º 3
0
        public void Paint(Graphics g)
        {
            //---------------- 背景類
            background.Paint(g, new Point(100, 100));
            river.Paint(g);
            grid.Paint(g, new Point(100, 600));

            switch (step)
            {
            case 0:
                //說明頁
                if (explain != null && ExplainPlayBtn != null)
                {
                    explain.Paint(g);

                    // 說明頁切換
                    switch (explainPage)
                    {
                    case 1:
                        mainCharacter.Paint(g);
                        break;

                    case 2:
                        mainCharacter.Paint(g);
                        break;

                    case 3:
                        yellowDragon[0].Paint(g);
                        break;
                    }
                    river.Paint(g);
                    river2.Paint(g);
                    ExplainPlayBtn.Paint(g);
                    rNextBtn.Paint(g);
                    lNextBtn.Paint(g);
                }
                break;

            case 1:
                //---------------- MainCharacter
                if (yellowDragon[0] == null && yellowDragon[1] == null)
                {
                    winroad.Paint(g);
                    pinkDragon.Paint(g);
                }
                mainCharacter.Paint(g);

                //---------------- Enemys
                for (int i = 0; i < yellow_NUM; i++)
                {
                    if (yellowDragon[i] != null)
                    {
                        yellowDragon[i].Paint(g);
                    }
                }
                //---------------- healthPts 血條
                for (int i = 0; i < yellow_NUM; i++)
                {
                    if (healthPts[i] != null)
                    {
                        healthPts[i].Paint(g);
                    }
                }
                if (yellowDragon[0] != null || yellowDragon[1] != null)
                {
                    river2.Paint(g);
                }
                break;

            case 5:
                if (explain != null)
                {
                    explain.Paint(g);
                }

                break;
            }
            //---------------- 換頁效果
            if (step == 6 || step == 2 || step == 3)
            {
                turn.Paint(g);
            }
        }
Ejemplo n.º 4
0
        //------------ 放在 Form1.Paint ----------//
        public void Paint(Graphics g)
        {
            background.Paint(g);
            wood.Paint(g);
            Page.Paint(g);
            redButton.Paint(g);
            blueButton.Paint(g);
            greenButton.Paint(g);
            purpleButton.Paint(g);
            if (click != 2 && click != 3 && click != 4)
            {
                turnTable.paint(g);
                cloud.Paint(g);
                rBtn0.Paint(g);
                rBtn1.Paint(g);
                rBtn2.Paint(g);
            }

            if (click == 2)
            {
                if (actorChange != 0)
                {
                    nextButtonLeft.Paint(g);
                }
                if (actorChange != 6)
                {
                    nextButtonRight.Paint(g);
                }
                switch (actorChange)
                {
                case 0: greenDragon.Paint(g); intro0.Paint(g); break;

                case 1: orangeDragon.Paint(g); intro2.Paint(g); break;

                case 2: bird.Paint(g); intro3.Paint(g); break;

                case 3: tinyDragon.Paint(g); intro4.Paint(g); break;

                case 4: brownDragon.Paint(g); intro1.Paint(g); break;

                case 5: blackDragon.Paint(g); intro5.Paint(g); break;

                case 6: yellowDragon.Paint(g); intro6.Paint(g); break;
                }
            }
            else if (click == 3)
            {
                rankpic.Paint(g);
                if (actorChange != 0)
                {
                    nextButtonLeft.Paint(g);
                }
                if (actorChange != 2)
                {
                    nextButtonRight.Paint(g);
                }
            }
            else if (click == 4)
            {
                storyModeExplain.Paint(g);
                mode01.Paint(g);
                mode02.Paint(g);
                storyMode.Paint(g);
            }
            //換頁效果
            if (step == 0 || step == 2 || step == 3)
            {
                turn.Paint(g);
            }
        }
Ejemplo n.º 5
0
        //---------------- 加在 Form1.Paint 裡 ----------------//
        public void Paint(Graphics g)
        {
            background.Paint(g);
            holegrass.Paint(g);
            switch (step)
            {
            //遊戲進場
            case 0:
                //------ 說明頁
                if (explain != null && ExplainPlayBtn != null)
                {
                    explain.Paint(g);
                    ExplainPlayBtn.Paint(g);
                    rNextBtn.Paint(g);
                    lNextBtn.Paint(g);
                }
                break;

            case 1:
            case 4:
                //----------------  clouds
                Thread.Sleep(30);
                clouds.Paint(g, new Point(100, 100));
                mainCharactor.Paint(g);
                blackDragon.Paint(g);

                //---------------- fire
                if (bluefire.widthsize >= 0 && bluefire.widthsize <= 1 &&
                    bluefire.heightsize >= 0.5 && bluefire.heightsize <= 1.5 &&
                    redfire.widthsize >= 0 && redfire.widthsize <= 1 &&
                    redfire.heightsize >= 0.5 && redfire.heightsize <= 1.5)
                {
                    douwn = true;

                    bluefire.widthsize  += 0.01f;
                    bluefire.heightsize += 0.01f;
                    bluefire.Center      = new Point(redfire.Center.X + Convert.ToInt32(redfire.img.Width * redfire.widthsize), redfire.Center.Y);

                    redfire.widthsize  -= 0.01f;
                    redfire.heightsize -= 0.01f;
                }

                if (douwn)
                {
                    bluefire.SetWidthHeight(g, bluefire.widthsize, bluefire.heightsize);
                    redfire.SetWidthHeight(g, redfire.widthsize, redfire.heightsize);
                    douwn = false;
                }
                else if (downCount == 0)
                {
                    redfire.Center  = new Point(385, 465);
                    bluefire.Center = new Point(740, 465);
                    bluefire.SetWidthHeight(g, 0.5f, 1);
                    redfire.SetWidthHeight(g, 0.5f, 1);
                    downCount++;
                }
                else
                {
                    if (redfire.widthsize >= 1)
                    {
                        redfire.Center = new Point(redfire.Center.X + 30, redfire.Center.Y);
                        redfire.SetWidthHeight(g, 1, 1.5f);

                        if (redfire.Center.X >= 1000)
                        {
                            Global.target = 0;
                            blackDragon.Motion(1);
                            if (countTime.Sec(2) && step != 5)
                            {
                                if (Global.Mode == 2)
                                {
                                    step = 4;
                                }
                                else
                                {
                                    step = 2;
                                }
                            }
                        }
                    }

                    if (bluefire.widthsize >= 1)
                    {
                        bluefire.Center = new Point(bluefire.Center.X - 30, bluefire.Center.Y);
                        bluefire.SetWidthHeight(g, 1, 1.5f);

                        if (bluefire.Center.X <= -100)
                        {
                            mainCharactor.Motion(7);
                            if (countTime.Sec(2))
                            {
                                step = 3;
                            }
                        }
                    }
                }
                break;

            case 2:
            case 3:
            case 5:
                turn.Paint(g);
                break;
            }
        }
Ejemplo n.º 6
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;
                    }
                }
            }
        }
Ejemplo n.º 7
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);
            }
        }