青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

天行健 君子當自強而不息

游戲中物件的定義與使用(1)


嘗試記錄那些有著各種用途的物件,以及它們在角色扮演游戲中所起的作用,將是一個非常重要的設計因素。

在游戲的過程中,通常被限定選擇并不算多的物件,每個物件都有它們各自獨特的用途。創(chuàng)建游戲時,每個物件都必須考慮到,它們都應被設計為一個特定的用途。武器、盔甲、療傷藥, 這些都需要明確定義,包括它們的形式和功能。

形式和功能,這兩個單詞說明了在物件定義中最重要的兩個方面。形式涉及了外觀和特征,即一個物體看上去像什么,感覺上是什么,它有多大,有多重等。功能則涉及到它們的用途,每個物件都有一個特定的用途,金錢可以購買東西,刀劍可以用來攻擊,療傷藥可以用來治愈創(chuàng)傷。

 

物件的形式

盡管對我們來說,在視覺上認識一個物體十分重要,但對計算機而言卻毫無意義,它們只不過是使用某個圖像或三維模型所表示的物體。假設想要創(chuàng)建一把武器,更確切的說是一把劍,在一個三維游戲中,希望玩家們能夠看到游戲中角色手握著的寶劍,而且能夠隨距離接近而放大。另外,為了顯示出已裝備的武器,還希望在屏幕上顯示一把寶劍的位圖。其實只需要一個網格模型和一張位圖(如下圖所示)就可以表示寶劍。

 

定義物件的功能

If you were to hand an object to a child (or to anyone for that matter), the child
would be able to find some use for it, even if it’s not the correct use. Although it
might be great to be able to do all kinds of things with objects in a game, that just
will not do for your purposes. The items (objects) in your game
will be used for specific purposes, which can be in one of the following categories
(note that the list is not comprehensive, but is a starting place for ideas):

■ Accessory. Rings, necklaces, belts, and any other form of wearable equipment
that can aid an adventurer are classified as accessories. Sometimes an accessory
is a magical piece of equipment that helps boost the abilities of the wearer.


■ Armor. Taking a blow is nothing—if you’re wearing the proper protection,
that is. Armor can be any form of protective gear, from a full suit of armor to
a pair of boots.


■ Collection. Any item that doesn’t serve an actual purpose is considered to be
a collection piece. These can be items that are important to the game story
in some way or that really have no definitive use. Items such as a picture,
small ornamental figurine, or chair are considered collection items.


■ Edible. Clam cakes, clam pies, clam alamode, creamed clam, or BBQ clam—
whatever your fancy. Your gaming denizens are bound to get hungry, and
whatever they can find and consume is classified as edible, even potions and
herbs.


■ Money. Everybody deals with the big M, no matter what form it takes—coins,
bills, clam shells, and so on. Games do not require denominations—one gold
coin is as good as the next, and the more coins you have, the better.


■ Transportation. Whether by bus, boat, plane, or hang glider, people sure
know how to get around, and items that can transport belong to characters
in the game. A boat can’t be lugged around, but your game recognizes a
character as the item’s owner by noting so in the character’s inventory.


■ Weapon. Whether it’s a sword, rock, or piece of lint, some things are just
more suitable for dealing out damage.


■ Other. Anything that doesn’t fit into the preceding categories is considered
“other.”

游戲引擎根據物件的類別來確定每個物件能夠做些什么。例如,武器可以被裝備,而食物可以被消費。可以在需要的時候添加每個物件的子類,以便可以使物件的分配更容易。

 

武器

武器所產生的破壞程度由一個數值來衡量,稱之為攻擊指數(attack modifier);越高的數值,就意味著武器擁有更大的破壞力。同時,一些武器能夠更輕巧地揮舞,所以就能夠給對手更快頻率的有效打擊。為了衡量一件武器攻擊目標的有效性,使用了命中指數(to-hit modifier);更高數值的武器,就意味著角色命中敵人的幾率越大。

一些武器也可以被歸類到指定的分組中,稱之為武器組合(weapon groups)。某些武器能夠比另外的武器發(fā)揮更大的破壞力,例如使用一把附上烈火法術的寶劍去對付冰魔。

武器也可以被歸類到子類中,例如近身格斗類和遠程攻擊類。無論什么類型,每件武器都有一個有效攻擊范圍。劍可以正面攻擊目標,而一把弩可以擊中40英尺外的目標。除此之外,武器還可以一次攻擊多個目標。

Armor

The more protection, the better, and in your game every little piece of armor
helps. Armor helps add resistance to damage. This resistance amount is called the
defense modifier. Just like weapons, armor has special uses and usage restrictions and
belongs to armor groups.
Armor can be split into multiple subcategories, such as helmets, chest and
abdomen protection, leggings, boots, gloves, and so on.

Accessories

As mentioned earlier, accessories usually have a specific use. A magic ring can be
worn to gain the ability to become invisible. This ability might always be in use
once the ring is donned, or it may have to be activated. Accessories can also act like
armor; they can increase the resistance to some aspect of the game—for example,
making it harder for the wearer to be poisoned.

Edibles

Edible items usually come in a few flavors (pun intended). Food items sustain life,
healing items increase health, and poisonous items decrease health. Again, special
uses are in effect, but because there are few uses for edible items, you can hardcode
those into your game engine.

Collections

A collectable object is usually docile; it’s needed only for some small aspect of the
game. For example, if a character gives you a picture of himself to deliver to a girl
in a neighboring town (and for no other purpose), the picture is considered a collection
item. Collection items simply move some part of the game story forward.
Perhaps the character delivering the picture will receive, in turn, a special item
from the girl in the next town.

Transportation

Getting around on foot is slow and tiring, so other forms of transportation might
be needed. The purpose of transportation items is to change the way the characters
move around (typically around the map). Transportation can also open up new areas
in the game that were previously not accessible. For instance, your character’s newly
acquired boat can now be used to sail across the lake to an isolated island, or maybe
that horse you saw in a nearby town will help you cross a barren desert safely.

Others

“Other” items are pretty much useless because they don’t have a defined use.
However, don’t throw them out. At the least, they can perform some type of action
as defined by the engine. For instance, depending on how well you do in combat,
your character could be awarded medals. While these medals are cool to look at,
they serve no purpose in the game.


posted on 2007-11-05 23:23 lovedday 閱讀(601) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發(fā)表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


公告

導航

統(tǒng)計

常用鏈接

隨筆分類(178)

3D游戲編程相關鏈接

搜索

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            久久久久久久久岛国免费| 欧美一二三视频| 亚洲国产三级在线| 亚洲精选一区二区| 一本色道久久综合一区| 亚洲欧美中文另类| 久久嫩草精品久久久精品一| 亚洲第一天堂av| 亚洲一区二区日本| 久久免费精品视频| 欧美体内谢she精2性欧美| 国产日韩1区| 亚洲精品极品| 久久亚洲春色中文字幕| 一本久道综合久久精品| 久久精品一级爱片| 国产精品久线观看视频| 亚洲精品网站在线播放gif| 亚洲精品五月天| 久久男人资源视频| 中日韩视频在线观看| 麻豆精品在线观看| 亚洲欧美在线视频观看| 欧美色图天堂网| 欧美综合国产精品久久丁香| 亚洲毛片av| 国产亚洲欧美aaaa| 久久av一区二区三区漫画| 久久亚洲综合网| 亚洲综合首页| 免费成人av在线| 欧美中在线观看| 国产一区二区三区奇米久涩| 亚洲国产成人tv| 国产日产亚洲精品| 亚洲精品中文字幕在线| 国内精品视频666| 欧美在线视频日韩| 欧美久久视频| 亚洲精品久久久久久久久久久久| 亚洲在线视频| 一本色道精品久久一区二区三区| 性欧美激情精品| 激情小说亚洲一区| 久久久亚洲高清| 欧美日韩美女一区二区| 亚洲尤物视频在线| 欧美激情国产日韩精品一区18| 在线欧美小视频| 欧美freesex8一10精品| 欧美成年网站| 一区二区三区四区在线| 亚洲一区二区影院| 一本色道久久综合亚洲精品高清 | 欧美在线播放高清精品| 国产精品99久久久久久人| 欧美午夜一区二区福利视频| 欧美在线精品一区| 欧美性开放视频| aa级大片欧美三级| 国产精品午夜在线| 久久久亚洲国产天美传媒修理工| 国产精品久久久久一区| 99视频超级精品| 亚洲天堂成人在线观看| 欧美日韩和欧美的一区二区| 欧美在线免费视屏| 国产欧美一区二区精品婷婷 | 欧美综合77777色婷婷| 国产麻豆精品视频| 欧美成人视屏| 欧美亚洲成人精品| 亚洲一卡久久| 亚洲精品乱码久久久久久蜜桃麻豆 | 久久伊人一区二区| 狠色狠色综合久久| 日韩亚洲视频| 精品动漫3d一区二区三区免费| 午夜亚洲伦理| 美日韩在线观看| 亚洲激情中文1区| 亚洲欧美乱综合| 夜夜嗨av一区二区三区四季av| 欧美精品一区在线发布| 中文av字幕一区| 久久久久综合一区二区三区| 在线观看91精品国产麻豆| 亚洲视频在线观看免费| 欧美伊人久久久久久久久影院| 国产一区二区中文| 欧美jizz19hd性欧美| 久久久久国产精品一区二区| 尹人成人综合网| 欧美韩日一区| 亚洲欧美日韩另类| 亚洲第一中文字幕| 亚洲欧美怡红院| 亚洲国产三级网| 国产精品三区www17con| 久久这里只有| 久久五月激情| 99在线精品观看| 国内精品国语自产拍在线观看| 开元免费观看欧美电视剧网站| 亚洲精品韩国| 亚洲精品视频免费观看| 国产精品国色综合久久| 夜夜嗨一区二区| 开元免费观看欧美电视剧网站| 亚洲美女精品成人在线视频| 国产欧美另类| 欧美区高清在线| 久久久久久久久岛国免费| 久久精品国产亚洲一区二区| 国产麻豆午夜三级精品| 欧美国产日韩精品免费观看| 欧美一级播放| 一本色道久久99精品综合| 欧美国产日韩一区二区三区| 亚洲片区在线| 欧美人与性禽动交情品| 久久久www成人免费无遮挡大片| 亚洲精品在线二区| 牛牛精品成人免费视频| 久久精品久久99精品久久| 亚洲桃色在线一区| 亚洲经典视频在线观看| 激情久久五月| 国产亚洲欧洲997久久综合| 国产精品九色蝌蚪自拍| 欧美日韩免费一区二区三区| 欧美大片在线观看一区二区| 久久久国际精品| 久久成人一区| 亚洲片在线资源| 亚洲第一在线综合网站| 老司机免费视频一区二区| 久久激情网站| 久久精品视频网| 久久在线91| 噜噜噜噜噜久久久久久91| 久久久综合激的五月天| 久久噜噜噜精品国产亚洲综合| 欧美在线观看视频在线| 性欧美video另类hd性玩具| 亚洲高清免费| 国产精品另类一区| 国产精品久久久久天堂| 欧美视频一区在线观看| 欧美三级不卡| 国产精品男女猛烈高潮激情| 国产精品区一区二区三| 国产精品视频专区| 国产一区二区三区网站| 韩日欧美一区二区| 亚洲激情啪啪| 在线一区二区三区四区五区| 亚洲一级在线| 亚洲韩日在线| 日韩天堂在线观看| 狠狠色香婷婷久久亚洲精品| 在线观看91久久久久久| 亚洲黄色成人久久久| 一本一本久久a久久精品综合麻豆| 一区二区三区精品在线| 亚洲综合日韩中文字幕v在线| 欧美一区二区三区视频免费播放| 久久精品亚洲一区二区| 久久这里有精品视频| 亚洲韩国青草视频| 99香蕉国产精品偷在线观看| 亚洲免费一在线| 老司机成人在线视频| 欧美日韩小视频| 国内成+人亚洲+欧美+综合在线| 亚洲国产视频直播| 亚洲欧美成人精品| 欧美福利电影网| 亚洲香蕉在线观看| 老牛影视一区二区三区| 国产精品豆花视频| 亚洲国产成人av| 欧美一区二区三区啪啪| 亚洲第一福利视频| 亚洲一级高清| 欧美国产在线观看| 国产亚洲欧美日韩美女| 一区二区三区四区国产精品| 久久久欧美精品sm网站| 99re成人精品视频| 久久精品国产成人| 欧美性做爰毛片| 亚洲人成欧美中文字幕| 久久精品国产99精品国产亚洲性色| 亚洲国产日韩欧美在线动漫| 欧美一级久久| 国产精品草草| 99精品99| 亚洲成人自拍视频| 亚洲国产精品一区二区第四页av|