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

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

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


嘗試記錄那些有著各種用途的物件,以及它們?cè)诮巧缪萦螒蛑兴鸬淖饔茫瑢⑹且粋€(gè)非常重要的設(shè)計(jì)因素。

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

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

 

物件的形式

盡管對(duì)我們來(lái)說(shuō),在視覺(jué)上認(rèn)識(shí)一個(gè)物體十分重要,但對(duì)計(jì)算機(jī)而言卻毫無(wú)意義,它們只不過(guò)是使用某個(gè)圖像或三維模型所表示的物體。假設(shè)想要?jiǎng)?chuàng)建一把武器,更確切的說(shuō)是一把劍,在一個(gè)三維游戲中,希望玩家們能夠看到游戲中角色手握著的寶劍,而且能夠隨距離接近而放大。另外,為了顯示出已裝備的武器,還希望在屏幕上顯示一把寶劍的位圖。其實(shí)只需要一個(gè)網(wǎ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.”

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

 

武器

武器所產(chǎn)生的破壞程度由一個(gè)數(shù)值來(lái)衡量,稱之為攻擊指數(shù)(attack modifier);越高的數(shù)值,就意味著武器擁有更大的破壞力。同時(shí),一些武器能夠更輕巧地?fù)]舞,所以就能夠給對(duì)手更快頻率的有效打擊。為了衡量一件武器攻擊目標(biāo)的有效性,使用了命中指數(shù)(to-hit modifier);更高數(shù)值的武器,就意味著角色命中敵人的幾率越大。

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

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

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) 評(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)論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            亚洲大胆人体视频| 国产日韩欧美综合精品| 国内一区二区在线视频观看| 亚洲男人第一网站| 在线视频日韩精品| 国产精品www994| 亚洲欧美另类在线| 亚洲乱码日产精品bd| 欧美1区2区3区| av成人免费| 亚洲精品黄网在线观看| 欧美暴力喷水在线| 一本色道久久| 亚洲手机在线| 国产欧美日韩精品a在线观看| 久久www成人_看片免费不卡| 久久精品国产视频| 亚洲片区在线| 中文一区二区| 国内自拍亚洲| 999在线观看精品免费不卡网站| 欧美午夜在线观看| 久久裸体艺术| 欧美国产亚洲视频| 亚洲欧美日韩国产中文| 久久精品在线| 一区二区三区四区五区在线| 亚洲欧美国产日韩天堂区| 激情五月婷婷综合| 99视频精品免费观看| 国产午夜一区二区三区| 亚洲国产精品热久久| 国产毛片精品国产一区二区三区| 久热精品视频在线观看| 欧美日韩精品免费在线观看视频| 久久嫩草精品久久久久| 欧美日本中文字幕| 久久中文字幕导航| 欧美亚一区二区| 欧美国产日本| 韩国精品久久久999| 亚洲精品中文字幕女同| 18成人免费观看视频| 亚洲伊人久久综合| 99视频精品全国免费| 久久久久久尹人网香蕉| 亚洲欧美中文另类| 欧美日韩国产va另类| 女女同性女同一区二区三区91| 国产精品免费在线| 亚洲经典自拍| 亚洲国产日韩欧美在线图片 | 韩国三级在线一区| 夜夜嗨av一区二区三区四区| 在线免费观看成人网| 午夜视频一区二区| 欧美亚洲网站| 国产精品男女猛烈高潮激情| 日韩亚洲国产精品| 亚洲剧情一区二区| 女主播福利一区| 欧美黑人国产人伦爽爽爽| 韩国一区二区三区在线观看| 亚洲综合色网站| 亚洲欧美综合| 国产精品久在线观看| aa国产精品| 亚洲视频高清| 国产精品久久久对白| 亚洲一区综合| 久久精品国产免费| 国内一区二区在线视频观看| 久久精品中文字幕一区| 久久久久免费视频| 伊人伊人伊人久久| 久热精品在线| 亚洲理伦电影| 亚洲免费小视频| 国产日本精品| 久久五月天婷婷| 欧美激情中文不卡| 亚洲午夜激情网页| 国产精品一二三| 欧美一区二区三区视频在线 | 亚洲国产片色| 欧美麻豆久久久久久中文| 日韩视频在线一区二区三区| 亚洲欧美精品在线| 国产日韩精品一区| 久久婷婷影院| 亚洲免费观看视频| 久久精品免费播放| 最新成人av网站| 欧美日韩国产首页| 亚洲欧美区自拍先锋| 蘑菇福利视频一区播放| 99在线|亚洲一区二区| 国产精品乱人伦一区二区| 午夜精品久久久久久久久久久| 久久免费观看视频| 亚洲伦理精品| 国产日韩专区| 欧美高清在线一区| 亚洲网友自拍| 欧美国产一区二区三区激情无套| 在线亚洲观看| 伊人精品久久久久7777| 欧美日韩综合精品| 久久精品夜色噜噜亚洲aⅴ| 亚洲国产精品久久久久婷婷老年| 亚洲欧美999| 亚洲欧洲一区二区天堂久久| 国产精一区二区三区| 欧美成人综合| 久久精品国产2020观看福利| 一区二区三区你懂的| 欧美电影打屁股sp| 久久成人免费电影| 一区二区激情小说| 亚洲二区在线视频| 国产女精品视频网站免费| 欧美黄色免费网站| 久久精品视频免费播放| 亚洲视屏在线播放| 亚洲级视频在线观看免费1级| 久久久久久久久蜜桃| 亚洲视频中文| 日韩亚洲视频| 亚洲人成久久| 亚洲黄色成人网| 国产一区二区三区四区| 国产精品久99| 欧美日韩在线观看一区二区| 免播放器亚洲| 久久美女性网| 久久精品人人做人人综合| 欧美一级在线视频| 亚洲欧美成人网| 中日韩视频在线观看| 亚洲久久一区| 一本色道久久综合| 亚洲精品视频免费在线观看| 亚洲成色www8888| 欧美激情一区| 亚洲第一综合天堂另类专| 欧美高清视频一二三区| 亚洲大胆av| 亚洲国产精品成人一区二区| 欧美国产日韩一区二区三区| 免费成人高清视频| 欧美成人精品在线播放| 欧美成人久久| 亚洲国产精品传媒在线观看 | 亚洲一区网站| 亚洲一线二线三线久久久| 亚洲先锋成人| 新67194成人永久网站| 性欧美大战久久久久久久久| 久久国产免费看| 麻豆国产精品一区二区三区 | 亚洲视频电影在线| 亚洲制服欧美中文字幕中文字幕| 亚洲无毛电影| 欧美一区二区| 欧美凹凸一区二区三区视频| 欧美电影免费观看| 亚洲精品久久久久久久久久久| 亚洲精品一区二区三区99| 一区二区三区四区五区精品| 午夜精品久久久| 久久这里只有| 欧美日韩精品三区| 国产日韩综合| 亚洲激情av| 欧美亚洲综合网| 久久在线免费观看| 亚洲精品久久在线| 欧美一区二区播放| 欧美成人亚洲| 国产农村妇女精品一区二区| 亚洲第一级黄色片| 亚洲性线免费观看视频成熟| 久久久久国产一区二区三区| 亚洲福利av| 亚洲一品av免费观看| 久久aⅴ国产欧美74aaa| 欧美激情一区二区三区在线| 国产精品久久国产精品99gif | 欧美成人视屏| 国产模特精品视频久久久久| 亚洲人成亚洲人成在线观看| 亚洲欧美成人| 欧美国产日本在线| 欧美亚洲自偷自偷| 欧美美女操人视频| 亚洲国产成人在线播放| 欧美一区2区三区4区公司二百| 亚洲欧洲日本在线| 久久久999精品视频| 国产精品高潮呻吟|