BulletMLSample.Game1.LoadContent C# (CSharp) Method

LoadContent() protected method

protected LoadContent ( ) : void
return void
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            texture = Content.Load<Texture2D>("Sprites\\bullet");
            parser.ParseXML(@"Content\sample.xml"); ///BulletML����
            //parser.ParseXML(@"Content\xml\[1943]_rolling_fire.xml");
            //parser.ParseXML(@"Content\xml\[Guwange]_round_2_boss_circle_fire.xml");
            //parser.ParseXML(@"Content\xml\[Guwange]_round_3_boss_fast_3way.xml");
            //parser.ParseXML(@"Content\xml\[Guwange]_round_4_boss_eye_ball.xml");
            //parser.ParseXML(@"Content\xml\[G_DARIUS]_homing_laser.xml");
            //parser.ParseXML(@"Content\xml\[Progear]_round_1_boss_grow_bullets.xml");
            //parser.ParseXML(@"Content\xml\[Progear]_round_2_boss_struggling.xml");
            //parser.ParseXML(@"Content\xml\[Progear]_round_3_boss_back_burst.xml");
            //parser.ParseXML(@"Content\xml\[Progear]_round_3_boss_wave_bullets.xml");
            //parser.ParseXML(@"Content\xml\[Progear]_round_4_boss_fast_rocket.xml");
            //parser.ParseXML(@"Content\xml\[Progear]_round_5_boss_last_round_wave.xml");
            //parser.ParseXML(@"Content\xml\[Progear]_round_5_middle_boss_rockets.xml");
            //parser.ParseXML(@"Content\xml\[Progear]_round_6_boss_parabola_shot.xml");
            //parser.ParseXML(@"Content\xml\[Psyvariar]_X-A_boss_opening.xml");
            //parser.ParseXML(@"Content\xml\[Psyvariar]_X-A_boss_winder.xml");
            //parser.ParseXML(@"Content\xml\[Psyvariar]_X-B_colony_shape_satellite.xml");
            //parser.ParseXML(@"Content\xml\[XEVIOUS]_garu_zakato.xml");
            //BulletML�̏�����
            BulletMLManager.Init(new MyBulletFunctions());

            //�G���‰�ʒ����ɍ쐬���A�e��f���悤�ݒ�
            mover = MoverManager.CreateMover();
            mover.pos = new Vector2(graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight/2);
            mover.SetBullet(parser.tree); //BulletML�œ������悤�ɐݒ�
        }