示例#1
0
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        //                                                                                                                        StartLevel()
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        void StartLevel()
        {
            background = new Level2_Background();
            AddChild(background);

            player = new Player();
            AddChild(player);

            _block_jump2 = new Block_Jump2(5000, 709);
            AddChild(_block_jump2);

            _block_jump = new Block_Jump(5500, 550);
            AddChild(_block_jump);

            enemy = new Enemy(6000, 830, 5150, 6850);
            AddChild(enemy);

            _block_jump = new Block_Jump(6500, 550);
            AddChild(_block_jump);

            enemy = new Enemy(7000, 585, 6900, 7100);
            AddChild(enemy);

            _block_jump2 = new Block_Jump2(7000, 709);
            AddChild(_block_jump2);

            enemy = new Enemy(9000, 830, 8150, 9500);
            AddChild(enemy);

            enemy = new Enemy(9200, 830, 8500, 9500);
            AddChild(enemy);

            enemy = new Enemy(9400, 830, 8500, 9500);
            AddChild(enemy);

            _block_jump = new Block_Jump(10000, 550);
            AddChild(_block_jump);

            enemy = new Enemy(10000, 830, 10150, 11850);
            AddChild(enemy);

            enemy = new Enemy(11000, 830, 10150, 11850);
            AddChild(enemy);

            _block_jump = new Block_Jump(11000, 550);
            AddChild(_block_jump);

            _block_jump2 = new Block_Jump2(12000, 709);
            AddChild(_block_jump2);

            enemy = new Enemy(12250, 830, 12150, 12850);
            AddChild(enemy);

            enemy = new Enemy(12750, 830, 12150, 12850);
            AddChild(enemy);

            _block_jump2 = new Block_Jump2(13000, 709);
            AddChild(_block_jump2);
        }
示例#2
0
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        //                                                                                                                        SetuptLevel()
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        void SetuptLevel()
        {
            background = new Level1_Background();
            AddChild(background);

            player = new Player();
            AddChild(player);

            enemy = new Enemy(3000, 830, 2500, 3500);
            AddChild(enemy);

            _block_jump2 = new Block_Jump2(4500, 709);
            AddChild(_block_jump2);

            _block_jump = new Block_Jump(6750, 550);
            AddChild(_block_jump);

            _block_jump = new Block_Jump(7250, 550);
            AddChild(_block_jump);

            enemy = new Enemy(6750, 830, 6250, 7250);
            AddChild(enemy);

            enemy = new Enemy(7250, 525, 7151, 7349);
            AddChild(enemy);

            _block_jump2 = new Block_Jump2(8800, 709);
            AddChild(_block_jump2);

            enemy = new Enemy(9300, 830, 8950, 10350);
            AddChild(enemy);

            enemy = new Enemy(10000, 830, 8950, 10350);
            AddChild(enemy);

            _block_jump2 = new Block_Jump2(10500, 709);
            AddChild(_block_jump2);

            enemy = new Enemy(11250, 830, 10650, 12600);
            AddChild(enemy);

            _block_jump = new Block_Jump(11250, 550);
            AddChild(_block_jump);

            _block_jump = new Block_Jump(12000, 550);
            AddChild(_block_jump);

            enemy = new Enemy(12000, 830, 10650, 12600);
            AddChild(enemy);

            _block_jump2 = new Block_Jump2(12750, 709);
            AddChild(_block_jump2);
        }
示例#3
0
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        //                                                                                                                        SetuptLevel()
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        void SetupLevel()
        {
            background = new LevelBoss_Background();
            AddChild(background);

            _block_jump = new Block_Jump(360, 550);
            AddChild(_block_jump);

            enemy_boss = new Enemy_Boss(1440, 0);
            AddChild(enemy_boss);

            player = new Player();
            AddChild(player);
        }