private void LoadPlayer()
        {
            //Player1
            var def = XmlHelper.LoadFromFile<CharacterDef>(@"Data\Hua.xml");
            def.ScaleX = 1.3f;
            def.ScaleY = 1.3f;
            def.Width *= 1.3f;
            def.Height *= 1.3f;
            def.MaxHP = 100;
            def.HP = 100;

            _player1 = _world.CreateCharacter(def);

            var hpBar = new HPBar("bloodframe", "blood");
            hpBar.Width = 186;
            hpBar.Height = 20;
            hpBar.X = -93;
            hpBar.Y = 100;
            hpBar.Target = _player1;

            Root.Add(_player1.Sprite);

            //Player2
            def = XmlHelper.LoadFromFile<CharacterDef>(@"Data\Dan1.xml");
            def.ScaleX = 1.2f;
            def.ScaleY = 1.2f;
            def.Width *= 1.2f;
            def.Height *= 1.2f;
            def.X = -9600;
            def.Y = 600;
            def.AI = @"AI\DuplicatePlayer.py";
            _player2 = _world.CreateCharacter(def);

            hpBar = new HPBar("bloodframe", "blood");
            hpBar.Width = 186;
            hpBar.Height = 20;
            hpBar.X = -93;
            hpBar.Y = 100;
            hpBar.Target = _player2;

            Root.Add(_player2.Sprite);
            EventManager.Register(_player2.AI);
        }
        private Character CreateCharacter(string filePath, Group group, float x, float y, float z,
            int HP = 10, float speedX = 200, float speedY = 400,
            float scaleX = 1.0f, float scaleY = 1.0f,
            float r = 1.0f, float g = 1.0f, float b = 1.0f)
        {
            var charDef = XmlHelper.LoadFromFile<CharacterDef>(filePath);
            charDef.X = x;
            charDef.Y = y;
            charDef.Z = z;
            charDef.R = r;
            charDef.G = g;
            charDef.B = b;
            charDef.ScaleX = scaleX;
            charDef.ScaleY = scaleY;
            charDef.Width *= scaleX;
            charDef.Height *= scaleY;
            charDef.MoveSpeed = new Vector2(speedX, speedY);
            charDef.Group = group;
            charDef.MaxHP = HP;
            charDef.HP = HP;

            Character character = _world.CreateCharacter(charDef);

            var hpBar = new HPBar("bloodframe", "blood");
            hpBar.Width = 186;
            hpBar.Height = 20;
            hpBar.X = -93;
            hpBar.Y = 100;
            hpBar.Target = character;

            return character;
        }