As shown in Example 8-2, we now have conditional statements that initialize the creature attributes to different values depending on the current game level.
As shown in Example 8-2, we now have conditional statements that initialize the creature attributes to different values depending on the current game level.
正如例8-2所示,我们使用条件语句来根据当前的游戏等级来初始化人的属性。