Ejemplo n.º 1
0
        public Stage03()
        {
            music     = new Music("stage03.mp3");
            turn      = new TurnPage();
            countTime = new CountTime();

            river  = new AnimateActor("river", 14, new Point(560, 550), 2.3f);
            river2 = new AnimateActor("river", 14, new Point(560, 550), 2.3f);

            background = new ContinuousActor("GridWall", 4, new Point(100, 340), 1f, 880, 100, 0);
            grid       = new ContinuousActor("grid", 4, new Point(195, 700), 2, 500, 100, 0);
            winroad    = new AnimateActor("finish", 1, new Point(1820, 530), 1.8f); //520到底

            mainCharacter = new MainCharactor("dragon", 3, new Point(420, 430), 8); // size 6
            pinkDragon    = new PinkDragon("Pinkdragon", 3, new Point(1990, 550), 6);
            yellowDragon  = new YellowDragon[yellow_NUM];
            healthPts     = new HealthPt[yellow_NUM];

            for (int i = 0; i < yellow_NUM; i++)
            {
                yellowDragon[i] = new YellowDragon("yellowdragon", 2, new Point(555, 600), 4);
                healthPts[i]    = new HealthPt("ProgressBar10", 1, new Point(1200, 500 + 100 * i), 4);
            }

            // 說明頁物件
            explain        = new AnimateActor("story31", 1, new Point(550, 410), 2);
            rNextBtn       = new AnimateActor("Rnext", 1, new Point(1000, 430), 1.3f);
            ExplainPlayBtn = new AnimateActor("exPlay", 1, new Point(550, 630), 1); // 550 600
            lNextBtn       = new AnimateActor("graExpLBtn0", 1, new Point(100, 430), 1.3f);

            Global.target = yellowDragon[0].Enemys + yellowDragon[1].Enemys;
        }
Ejemplo n.º 2
0
        //-------------建構子-------------//
        public Level01()
        {
            music      = new Music();
            countTime  = new CountTime();
            turn       = new TurnPage();
            yellowBird = new YellowBird("YellowBird", 3, new Point(1100, 100), 6);
            Background = new Actor("pink", new Point(690, 300), 1.2f);
            RainBow    = new Actor("rainbow", new Point(550, 640), 1.2f);
            Cloud      = new AnimateActor("clouds", 1, new Point(550, 430), 2);
            WingL      = new AnimateActor("wing0", 2, new Point(570, 470), 1.7f);
            WingR      = new AnimateActor("wing1", 2, new Point(540, 365), 1.2f);

            mainCharactor = new MainCharactor("dragon", 3, new Point(690, 220), 8);
            stone         = new AnimateActor("stone", 1, new Point(1100, 200), 5f);

            //------說明頁
            if (Global.Mode > 0)
            {
                explain  = new AnimateActor("Level01explain0", 1, new Point(550, 410), 2);
                rNextBtn = new AnimateActor("Rnext", 1, new Point(1000, 430), 1.3f);
            }
            else
            {
                explain  = new AnimateActor("story15", 1, new Point(550, 410), 2);
                rNextBtn = new AnimateActor("graExpRBtn0", 1, new Point(1000, 430), 1.3f);
            }
            ExplainPlayBtn = new AnimateActor("exPlay", 1, new Point(550, 630), 1);

            lNextBtn = new AnimateActor("graExpLBtn0", 1, new Point(100, 430), 1.3f);

            Global.target = 2;
        }
Ejemplo n.º 3
0
        public Level02()
        {
            music      = new Music();
            countTime  = new CountTime();
            turn       = new TurnPage();
            randomizer = new Random();

            background    = new AnimateActor("sunsetBk", 1, new Point(697, 330), 1.5f);
            holegrass     = new AnimateActor("holegrass", 1, new Point(247, 360), 1.1f);
            mainCharactor = new MainCharactor("DragonFire1", 2, new Point(120, 550), 4.5f);
            blackDragon   = new BlackDragon("blackdragon", 2, new Point(970, 550), 4.5f);
            redfire       = new Fire("redfire", 3, new Point(385, 465), 1.8f, 0.5f, 1);
            bluefire      = new Fire("BlueFire", 3, new Point(740, 465), 1.8f, 0.5f, 1);
            clouds        = new ContinuousActor("sunsetCloud", 4, new Point(100, 0), 1.7f, 400, 30, 5);

            douwn     = false;
            downCount = 0;

            //------說明頁
            if (Global.Mode > 0)
            {
                explain  = new AnimateActor("Level02explain0", 3, new Point(550, 410), 2);
                rNextBtn = new AnimateActor("graExpRBtn0", 1, new Point(1000, 450), 1.3f);
            }
            else
            {
                explain  = new AnimateActor("story22", 1, new Point(550, 410), 2);
                rNextBtn = new AnimateActor("Rnext", 1, new Point(1000, 450), 1.3f);
            }
            ExplainPlayBtn = new AnimateActor("exPlay", 1, new Point(550, 630), 1);

            lNextBtn = new AnimateActor("graExpLBtn0", 1, new Point(100, 450), 1.3f);

            Global.target = 1;
        }
Ejemplo n.º 4
0
        public Stage01()
        {
            music = new Music("stage1.mp3");

            // 隨機背景
            clouds    = new ContinuousActor("clouds", 7, new Point(100, 100), 1, 400, 80, 5);
            mountains = new ContinuousActor("mountain", 6, new Point(100, 600), 1.2f, 350, 80, 0);
            grasses   = new ContinuousActor("Grass", 6, new Point(100, 658), 1.8f, 200, 80, 0);

            // 固定背景與物體
            background = new AnimateActor("bluesky", 1, new Point(800, 300), 1.3f);
            grass      = new AnimateActor("Grass11", 1, new Point(1000, 430), 1f);
            rainbow    = new AnimateActor("rainbow1", 1, new Point(1800, 300), 0.3f);

            // 動態互動物體
            stone = new AnimateActor("stone", 1, new Point(1100, 200), 3f);
            bone  = new AnimateActor("bone", 1, new Point(750, 450), 3);

            // 怪物們
            mainCharactor = new MainCharactor("dragon", 3, new Point(350, 500), 6);
            orangeDragon  = new OrangeDragon("orangedragon", 2, new Point(750, 500), 3);
            yellowBird    = new YellowBird("YellowBird", 3, new Point(1100, 100), 4);

            // 生命Bar
            healthyellow = new HealthPt("ProgressBar10", 1, new Point(1100, 0), 3);
            healthorange = new HealthPt("ProgressBar10", 1, new Point(1100, 500), 3);

            // 測試用按鈕
            playButton = new AnimateActor("Play1", 1, new Point(1000, 430), 15);
            newt       = new CountTime();

            // 說明頁物件
            if (Global.Mode > 0)
            {
                explain = new AnimateActor("explain2", 1, new Point(550, 410), 2);
            }
            else
            {
                explain = new AnimateActor("story11", 1, new Point(550, 410), 2);
            }
            ExplainPlayBtn = new AnimateActor("exPlay", 1, new Point(550, 630), 1); // 550 600
            oneHp01        = new AnimateActor("oneHp", 1, new Point(450, 390), 1);
            oneHp02        = new AnimateActor("oneHp", 1, new Point(750, 390), 1);
            rNextBtn       = new AnimateActor("Rnext", 1, new Point(1000, 430), 1.3f);
            lNextBtn       = new AnimateActor("graExpLBtn0", 1, new Point(100, 430), 1.3f);
            canPaintHp01   = false;
            canPaintHp02   = false;
            isAttackOrange = false;

            Global.target = orangeDragon.Enemys;
        }
Ejemplo n.º 5
0
        //-------------- Stage02 建構子 ---------------//
        public Stage02()
        {
            music = new Music("stage2.mp3");

            turn       = new TurnPage();
            randomizer = new Random();
            countTime  = new CountTime();

            tinyDragons = new TinyDragon[TINYDRAGON_NUM];
            fires       = new AnimateActor[Fire_MaX_Num];

            healthPts              = new HealthPt[HEALTHPTS_NUM];
            brownDragonHealthPt    = new HealthPt("ProgressBar10", 1, new Point(500, 500), 3);
            brownDragonHealthPt.hp = BROWNDRAGON_Max_HP;
            brownDragon            = new BrownDragon("browndragon", 2, new Point(1550, 500), 2); //950
            brownDragonImgWidth    = brownDragon.brownDragon.img.Width;
            brownDragonImgHeight   = brownDragon.brownDragon.img.Height;

            clouds = new ContinuousActor("clouds", 7, new Point(100, 100), 1, 400, 100, 5);

            mainCharator = new MainCharactor("flydragon", 2, new Point(200, 400), 5f);

            for (int i = 0; i < TINYDRAGON_NUM; i++)
            {
                tinyDragons[i] = new TinyDragon("tinyDragon", 3, new Point(1000 + 50 * i * randomizer.Next(1, 5), 0 + 50 * i * randomizer.Next(1, 10)), 3);
                healthPts[i]   = new HealthPt("ProgressBar10", 1, new Point(500, 500), 6);
            }

            pinkBk       = new AnimateActor("pinkBk", 1, new Point(500, 390), 1.5f);
            cloudsCenter = new Point(100, 100);

            healthPtCount = 0; // 記數 : tinyDragon 的死亡數量
            //MessageBox.Show("" + tinyDragons[0].img.Width);

            //------說明頁


            if (Global.Mode > 0)
            {
                explain = new AnimateActor("Stage02explain0", 1, new Point(550, 410), 2);
            }
            else
            {
                explain = new AnimateActor("story21", 1, new Point(550, 410), 2);
            }
            ExplainPlayBtn = new AnimateActor("exPlay", 1, new Point(550, 630), 1);
            rNextBtn       = new AnimateActor("Rnext", 1, new Point(1000, 450), 1.3f);
            lNextBtn       = new AnimateActor("graExpLBtn0", 1, new Point(100, 450), 1.3f);

            Global.target = 1;
        }
Ejemplo n.º 6
0
        public MainpageStage()
        {
            music          = new Music("ep2.mp3");
            turn           = new TurnPage();
            foot           = new Foot();
            background     = new Actor("mainpageBackground", new Point(550, 394), 1.5f);
            dragon         = new MainCharactor("dragon", 2, new Point(0, 625), 7);
            playButton     = new AnimateActor("skip", 1, new Point(1030, 700), 1.2f);
            superragonLogo = new AnimateActor("Logo", 1, new Point(530, -200), 2);

            mainPageisStart = true;
            super_count     = 0;
            step            = 0;
        }