• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            天行健 君子當(dāng)自強(qiáng)而不息

            Putting Together a Full Game(3)

             

            Defining the Characters

            Including the player of the game, a total of eight types of characters are in The Tower
            (with the game using multiple instances of those types of characters). Table 20.1
            defines those eight types of characters. To understand those definitions, use the
            following legend:

            ■ Class. The character’s class.
            ■ HP. Health points. The maximum number of health points of a character.
            ■ MP. Mana points. The maximum number of mana points of a character.
            ■ Exp. The amount of experience gained when a character is killed.
            ■ Gold: The amount of gold a character is carrying (and drops when killed).
            ■ Atk. Attack ability.
            ■ Def. Defense ability.
            ■ Agl. Agility ability.
            ■ Res. Magical resistance ability.
            ■ Mnt. Mental ability.
            ■ ToH. A character’s to-hit ability.
            ■ Speed. Speed of movement measured in units per second.
            ■ Range. Attack range measured in units.
            ■ Charge. The charge rate of a character. This is in units per second. Once a character’s
            charge is at 100, that character can perform an attack or magic spell.
            ■ Atk%. Percentage of chance that a character will attack a nearby player.
            ■ Mag%. Percentage of chance that a character will use a spell on a nearby player.
            ■ Spells. The magic spells a character knows.

            As an example for using the character definitions and the legend, take character #3.
            Granite (the character’s name) is class 3, has 70 health points, 100 mana points,
            200 experience points (given to the player when Granite is killed), no gold, and
            the following ability values:

            Movement speed: 16 units per second
            Attack range: 16 units
            Attack: 20
            Defense: 15
            Agility: 5
            Magic resistance: 10
            Charge rate: 15 per second
            Percentage to attack: 80%
            Percentage to use magic: 20%
            Knows spells: #4 (Groundball)
            Mental: 10
            To Hit: 800

            To make better sense of the character’s definitions, I suggest loading
            up the MCL_Edit project and using it to edit the Game.mcl file . The
            only character in the list that you really need to be concerned about
            is the game’s player, character #0.

            The character statistics listed in Table 20.1 represent the statistics when the game starts.

            Whenever the player kills a monster, the player’s experience points rise a bit (based
            on the monster’s experience points), and as the player reaches specific levels of
            experience points, his statistics increase.

            As well as increased statistics, the player might learn a spell, depending on the
            experience level gained. The levels of experience points at which those experience
            “level-ups” occur are listed here, along with the spell learned:

            ■ 10 experience points for level 2. The player learns the Fireball spell (spell #0).
            ■ 30 experience points for level 3. The player learns the Ice spell (spell #1).
            ■ 80 experience points for level 4. The player learns the Heal Self spell (spell #2).
            ■ 150 experience points for level 5. The player learns the Teleport spell (spell #3).
            ■ 350 experience points for level 6. The player learns the Groundball spell
            (spell #4).
            ■ 500 experience points for the level 7 (the final level). No spells learned.

            Notice that the last experience level achievable by the player is level 7. At that point,
            the player should be powerful enough to take on the Evil Lord at the end of the game.
             

            posted on 2007-12-28 17:51 lovedday 閱讀(206) 評(píng)論(0)  編輯 收藏 引用


            只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


            公告

            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            隨筆分類(lèi)(178)

            3D游戲編程相關(guān)鏈接

            搜索

            最新評(píng)論

            久久99国产精一区二区三区| A级毛片无码久久精品免费| 九九久久99综合一区二区| 久久精品国产只有精品2020| 九九久久精品无码专区| 久久无码AV一区二区三区| 1000部精品久久久久久久久| 久久久99精品成人片中文字幕| 久久丫精品国产亚洲av不卡| 国产精品伦理久久久久久| 中文字幕热久久久久久久| 国产女人aaa级久久久级| 国产成人精品久久二区二区| 婷婷国产天堂久久综合五月| 热99re久久国超精品首页| 亚洲综合精品香蕉久久网| 久久久久久亚洲精品无码| 国产精品久久免费| 久久久免费精品re6| 亚洲精品白浆高清久久久久久| 精品久久久久久久久久久久久久久| 久久精品无码专区免费青青| 国产精品久久婷婷六月丁香| 国产精品女同一区二区久久| 精品久久久久久久| 国产91色综合久久免费| 97精品伊人久久大香线蕉app | 狠狠88综合久久久久综合网| 久久久久久久97| 99蜜桃臀久久久欧美精品网站| 久久亚洲sm情趣捆绑调教| 中文成人无码精品久久久不卡| 四虎影视久久久免费| 欧美激情精品久久久久久久九九九| 国产精品久久久久久久久久免费| 久久久久久久尹人综合网亚洲| 狠狠色婷婷综合天天久久丁香 | 久久久噜噜噜久久熟女AA片| 人妻丰满AV无码久久不卡| 亚洲精品国产字幕久久不卡| 久久精品亚洲一区二区三区浴池|