First Steps
Every platform game has its star character
who the player controls. Our star is
Lerpz.
第一步驟
每個平台的遊戲人物都有其明星誰是播放器控制。我們的明星是Lerpz。
Animating
Lerpz
In this chapter we will look at:
• Implementing third-person player
and camera controls
• Controlling and blending animations
• Using particle
systems to implement the jet-pack’s thrusters
• Adding a blob-shadow to the
player
• Maintaining the player’s state
• Handling player health, death
and re-birth.
Before we can begin, we need to know what this game is all
about.
In short, we need...
動畫
Lerpz
在這一章中,我們將著眼於:
•實施第三人稱播放器和相機控制
•控制和混合動畫
•使用粒子系統來實現的噴氣包的推進器
•添加一個
BLOB-陰影的球員
•維護球員的狀態
•處理球員健康,死亡和再-
出生。
在我們開始之前,我們需要知道這個遊戲是怎麼一回事。
總之,我們要...
The Plot
Our hero is
Lerpz: an alien visiting Robot World Version 2.
This replaced Robot World
Version 1, which suffered a particularly brutal segmentation fault and abruptly
crashed into its sun many years
ago.
情節
我們的英雄是Lerpz:一個外國人來訪的機器人世界第2版。
這就取代機器人世界版本1,遭受一種特別殘酷的分割故障和其Sun突然撞向很多年前。
Unfortunately, Lerpz has had some bad luck: his spaceship has been impounded
by the corrupt local police.
After looking high and low, Lerpz has found his
spaceship, but Every platform game has its star character who the player
controls.
Our star is Lerpz. how can he get it back from Mr. Big’s nastier,
obsessive-compulsive cousin, Mr. Even Bigger?
不幸的是,Lerpz已取得了一些壞運氣:他的飛船已被扣押了腐敗的地方警察。
看後高與低,Lerpz找到了自己的太空船,但每個平台的遊戲都有它的明星人物誰是播放器控制。
我們的明星是Lerpz。他怎麼能找回來大先生的厲害,強迫表弟先生更大?
Mr. Bigger loves nothing more than artistically arranging fuel canisters on
his floating patio. He particularly admires how they glow when he places them on
hover pads. (And, of course, they’re cheaper than fitting normal garden
lights.)
更大的愛先生無非藝術在他的安排燃料罐浮天井。他特別欽佩他們如何煥發他們的地方時,他就懸停墊。
(當然,他們價格比正常裝修花園燈。)
But there’s something Mr. Bigger hasn’t realized!
Thanks to his penny-pinching ways, Lerpz knows that if he collects all the fuel
canisters, the power used to keep them hovering will overload the security
system. This will shut down the impound lot’s fence and free Lerpz’s spaceship.
Lerpz can then enter his spaceship, add the fuel from the cans and fly away to
freedom.
但還有一些尚未實現更大先生!由於他的小氣方式,Lerpz知道,如果他收集所有的燃料罐,電源使用,使他們徘徊將超載的安全系統。這將關閉扣押了很多的圍欄和自由Lerpz的飛船。
Lerpz可以進入他的飛船,從添加燃料罐和自由飛走。
All our hero has to do is collect enough fuel
canisters and the impound’s force field will automatically shut down. Lerpz can
then get back into his space car and drive it away. Mr. Bigger’s hired robot
guards will try to stop erpz, but luckily, they’re not particularly
bright.
我們所有的英雄所要做的就是收集足夠的燃料罐和扣押的力場將自動關閉。
Lerpz然後可以重新回到他的太空車,駕駛它了。先生更大的僱用警衛機器人將試圖阻止erpz,但幸運的是,他們並不是特別明亮。
Now that
that’s out of the way, we can start fleshing out our
hero.
現在,這出的方式,我們可以開始充實我們的英雄。
Introducing Lerpz
*Open the project up
and view the Scenes->TheGame Scene. Our first step is to add Lerpz to our
Scene:
*Open the Objects folder in the Project Pane;
*Drag the Lerpz
Prefab into either the Scene View or the Hierarchy View;
*Click on the new
Lerpz entry in the Hierarchy and rename it to Player;
*Keep the Player object
selected, move the mouse over the Scene View and tap the F (focus) key to center
the view on the Lerpz model.
*Move Lerpz onto the raised platform with the
Jump Pad (the niche with the yellow chevrons), near the Jail. (See the
screenshot on the next page.)
介紹 Lerpz
*打開和查看項目的場面->
TheGame場景。我們的第一個步驟是將 Lerpz加入到我們的場景:
*打開對象文件夾窗格中的項目;
*拖動 Lerpz
Prefab進入無論是現場查看或層次觀;
*點擊進入新Lerpz層次結構中的重命名為播放器;
*保持Player對象選擇,移動鼠標,使景色查看和自來水的F(重點)鍵的中心查看有關
Lerpz模型。
*移動 Lerpz上所提出的平台與跳躍墊(黃色的利基與箭頭),附近的監獄。 (見截圖在下頁。)
If you click
Play now, you should see Lerpz standing in the courtyard outside the jail.
At
this stage, Lerpz cannot be moved and the camera also needs to be linked to our
player's
character.
如果您單擊播放現在,你應該看到Lerpz站在院子外的監獄。
在這個階段,Lerpz不能移動,相機也需要與我們的球員的性格。