額外的,主角自身的經驗值屬性也同時增加,並且當達到下一級所需的升級經驗時即會觸發升級效果,每一級所需的經驗值我一並放在XML系統參數文件中:
<LevelUp>
<ExperIEnce Level="0" Value="0" />
<ExperIEnce Level="1" Value="0" />
<ExperIEnce Level="2" Value="400" />
<ExperIEnce Level="3" Value="1280" />
<ExperIEnce Level="4" Value="2720" />
<ExperIEnce Level="5" Value="4800" />
<ExperIEnce Level="6" Value="7600" />
<ExperIEnce Level="7" Value="11200" />
<ExperIEnce Level="8" Value="15680" />
<ExperIEnce Level="9" Value="21120" />
<ExperIEnce Level="10" Value="27600" />
<ExperIEnce Level="11" Value="35200" />
<ExperIEnce Level="12" Value="44000" />
<ExperIEnce Level="13" Value="54080" />
<ExperIEnce Level="14" Value="65520" />
<ExperIEnce Level="15" Value="78400" />
<ExperIEnce Level="16" Value="92800" />
<ExperIEnce Level="17" Value="108800" />
<ExperIEnce Level="18" Value="126480" />
<ExperIEnce Level="19" Value="145920" />
<ExperIEnce Level="20" Value="167200" />
<ExperIEnce Level="21" Value="190400" />
<ExperIEnce Level="22" Value="215600" />
<ExperIEnce Level="23" Value="242880" />
<ExperIEnce Level="24" Value="272320" />
<ExperIEnce Level="25" Value="304000" />
……
< /LevelUp>