• <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(4)

             

            Assigning Characters

            During the design of the sample game, it is necessary to assign each character a
            unique identification number. For example, the player is assigned the identification
            #0, whereas the village elder uses the identification #1. By assigning these
            identification numbers, the script engine knows which characters to use for performing
            certain actions, such as displaying dialogue or tracking flags in order to
            alter in–game-play. These pre-assigned identification numbers are as follows:

            0: Player character
            1: Village elder
            2: Village guard
            3: Village shopkeeper
            4: Monster in village at start of game
            5: Demon in tower who runs to warn the Evil Lord
            6: Granite, the rock demon
            7: Evil Lord

            The only characters in the list shown here that do not have identification numbers
            assigned are the monsters the player encounters throughout the game. You assign
            these monsters identification numbers from 256 and up—there’s really no reason
            at this point to predetermine these numbers. Think of the numbering order as a
            first-come, first-serve order of assigning monsters’ identification numbers.

             

            Creating the Items and Spells

            The Tower has eight items, each of which is shown in Table 20.2. Only a few of the
            items are for sale; the player receives the rest from other characters. Items with a
            price listed (shown by a number followed by gp) are for sale in the village level.

            You use seven spells in the sample game—numbered from 0 to 6. Table 20.3 lists
            and describes each spell. You can also confer with the Master Spell List Editor
            program for the specifics on each spell. The game's spells are contained in the Game.msl file.

            To better understand the spells in Table 20.3, use the following legend:

            ■ Cost. This is the amount of mana points it takes to cast a spell.

            ■ Cure. A spell can cure characters with a specific class assigned to them. If a
            cure class is listed, casting the spell on a character instead heals that character
            for half the amount of intended damage.

            ■ 2xDmg. Much like cure, this is the class of character to which the spells
            cause twice as much damage as the spell normally would cause. For example,
            an ice spell will cause twice the normal amount of damage to a fire-based
            monster, such as the Evil Lord.

            ■ Effect. This is the effect of the spell on the intended character. The four
            effects used in The Tower are alter health, teleport, cure ailment, and cause
            ailment. Each effect (except teleport) is followed by a number that represents
            the modifier value. Alter health is the amount to subtract or add to the target’s
            health points. Cure ailment and cause ailment refer to the bit-flags used.

            ■ Target. This is the spell’s target type, which can be a single character
            (Single), self (the character casting the spell), or an area.

            ■ EffectRange. This is the radius in which the spell’s effect hits nearby targets.

            ■ TargetDistance. This is the maximum distance the spell will travel to hit a target
            character. The character casting the spell must be within this distance to
            cast the spell at a target character.

            Some of the preceding spells are unique to certain characters. For example, the
            Evil Force spell is used only by the Evil Lord—he casts it upon himself to increase
            his power (specifically raising his statistics and increasing his speed). Consult the
            game’s master character list  to determine which characters know which spells.

            That’s about it for the game’s contents, spells, or characters, so now you can turn
            your attention to the game’s scripts.


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


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


            公告

            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            隨筆分類(178)

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

            搜索

            最新評(píng)論

            91久久九九无码成人网站 | 午夜不卡久久精品无码免费| 久久久精品国产Sm最大网站| 久久中文字幕视频、最近更新| 亚洲午夜无码久久久久小说| 亚洲中文字幕无码久久精品1| 久久精品人人做人人爽电影蜜月| 久久99热国产这有精品| 久久中文精品无码中文字幕| 久久精品黄AA片一区二区三区| 国产亚洲欧美成人久久片| 久久久久综合国产欧美一区二区| 人妻无码久久一区二区三区免费| 久久综合久久综合久久| 久久婷婷五月综合97色直播| 久久福利青草精品资源站免费| 国产亚洲美女精品久久久久狼| 亚洲国产精品婷婷久久| 久久精品国产亚洲AV影院| 国产高潮国产高潮久久久91 | 狠狠人妻久久久久久综合蜜桃| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 久久精品无码一区二区三区日韩 | 久久福利青草精品资源站| 久久午夜夜伦鲁鲁片免费无码影视 | 91精品国产色综久久| 日韩精品久久无码人妻中文字幕 | 精品久久久久国产免费 | 亚洲AV日韩AV永久无码久久| 久久99国产精品成人欧美| 久久久久久九九99精品| 国产aⅴ激情无码久久| 伊人久久精品影院| 久久人搡人人玩人妻精品首页 | 亚洲国产综合久久天堂| 国产成人久久精品二区三区| 国产欧美久久一区二区| 久久香蕉国产线看观看乱码| 国产人久久人人人人爽| 久久精品国产亚洲av麻豆色欲| 伊人久久大香线蕉AV色婷婷色|