Unity 3.x Scripting (Paperback)
暫譯: Unity 3.x 腳本編寫 (平裝本)
Volodymyr Gerasimov, Devon Kraczla
- 出版商: Packt Publishing
- 出版日期: 2012-06-10
- 售價: $1,400
- 貴賓價: 9.5 折 $1,330
- 語言: 英文
- 頁數: 290
- 裝訂: Paperback
- ISBN: 1849692300
- ISBN-13: 9781849692304
-
相關分類:
遊戲引擎 Game-engine
立即出貨(限量) (庫存=1)
買這商品的人也買了...
-
$299$254 -
$490$387 -
$780$663 -
$520$442 -
$750$593 -
$580$493 -
$480$379 -
$850$672 -
$1,000$950 -
$780$663 -
$450$383 -
$680$578 -
$650$429 -
$550$435 -
$450$383 -
$680$578 -
$580$458 -
$480$317 -
$680$578 -
$580$493 -
$680$612 -
$620$527 -
$390$257 -
$680$537 -
$199$169
相關主題
商品描述
Write efficient, reusable scripts to build custom characters, game environments, and control enemy AI in your Unity game.
- Make your characters interact with buttons and program triggered action sequences
- Create custom characters and code dynamic objects and players' interaction with them
- Synchronize movement of character and environmental objects
- Add and control animations to new and existing characters
- Written in simple and step-by-step format with real life examples, this book is the only one in the market to focus on Unity Scripting
In Detail
Unity is a powerful tool for anyone who aspires to build interesting and sellable games. One of the exciting aspects of Unity is how easily it can be extended to build custom characters and game environments. Scripting is the key to accomplish all this, but it comes with a steep learning curve.
This book will teach you everything you need to know about scripting in Unity. It will take you through creating, including and tweaking scripts for achieving various tasks. Some of these tasks include controlling characters, animations, controlling objects, handling game data and enemy AI.
The book will begin by building scripts for simple tasks and continue to develop them for increasing level of difficulty. The first few chapters include scripting to build a custom game environment and creating characters and controlling them. Arranging camera views, controlling and creating animations are covered in the next set of chapters.
The book then moves on to build objects, animate them and code character interaction with them and create inventories where the characters can pick ammo, health and other such objects. Towards the end, the book teaches how to add background sound and discusses basic enemy AI scripting.
What will you learn from this book
- Use available scripts that readers can use to create default character controller
- Attach default character controller scripts to an existing game object
- Set-up your own camera and character controller rigs through code
- Code dynamic and static objects like bio gun, ammo, health, character stat augmentation, treasure chests and make your character interact with them
- Create character item slots along with inventories, where players will be able to drag and drop different item icons in the inventory slots
- Attach existing animation scripts to characters and objects and create new ones
- Assign and equip selected items on a player or object, making them active and useable like adding fire functionality to a bio gun
- Create and maintain scores to control character objectives and save game data
- Setup a system to control transition between scenes and transferring objects from one scene to another along with instantiation for characters
- Deal with 2D and 3D parallax backgrounds
- Create an audio game controller to fix sound overlapping and create background audio stems
- Basics of enemy AI, such as path-finding and creating distinct enemy behavior and their awareness
Approach
The book is written in an easy to understand step-by-step style. It covers real-world examples for every topic, so that you gain most out of the book and are able to apply these techniques straight into your game.
Who this book is written for
If you are a programmer interested in developing games using Unity and want to customize your game by writing scripts, then this is a book for you. To make the best use of this book, you will have to know your way around Unity. The book is ideal for someone, who has experience in building games using Unity and knows a bit of programming; especially JavaScript. However, if you are a programmer in any other language, you should be able to grasp the book fairly easily.
商品描述(中文翻譯)
撰寫高效、可重用的腳本,以在您的 Unity 遊戲中構建自定義角色、遊戲環境並控制敵方 AI。
- 讓您的角色與按鈕互動並編程觸發的動作序列
- 創建自定義角色並編碼動態物件及玩家與它們的互動
- 同步角色與環境物件的移動
- 為新角色和現有角色添加和控制動畫
- 本書以簡單且逐步的格式撰寫,並提供現實生活中的範例,是市場上唯一專注於 Unity 腳本的書籍
詳細內容
Unity 是一個強大的工具,適合任何渴望構建有趣且可銷售遊戲的人。Unity 的一個令人興奮的方面是它可以輕鬆擴展以構建自定義角色和遊戲環境。腳本編寫是實現這一切的關鍵,但它有著陡峭的學習曲線。
本書將教您有關 Unity 腳本編寫所需了解的一切。它將引導您創建、包含和調整腳本以完成各種任務。其中一些任務包括控制角色、動畫、控制物件、處理遊戲數據和敵方 AI。
本書將從為簡單任務構建腳本開始,並持續發展以提高難度。前幾章包括腳本編寫以構建自定義遊戲環境、創建角色並控制它們。安排相機視圖、控制和創建動畫將在接下來的章節中涵蓋。
然後,本書將進一步構建物件、為其添加動畫並編碼角色與物件的互動,並創建角色可以撿取彈藥、生命值和其他物品的庫存。接近結尾時,本書將教您如何添加背景音效並討論基本的敵方 AI 腳本編寫。
您將從本書中學到什麼
- 使用可用的腳本,讀者可以用來創建默認角色控制器
- 將默認角色控制器腳本附加到現有的遊戲物件
- 通過代碼設置自己的相機和角色控制器裝置
- 編碼動態和靜態物件,如生物槍、彈藥、生命值、角色屬性增強、寶箱,並使您的角色與它們互動
- 創建角色物品槽以及庫存,玩家將能夠在庫存槽中拖放不同的物品圖標
- 將現有的動畫腳本附加到角色和物件上並創建新的動畫
- 在玩家或物件上分配和裝備選定的物品,使其變得活躍且可用,例如為生物槍添加火焰功能
- 創建和維護分數以控制角色目標並保存遊戲數據
- 設置系統以控制場景之間的過渡,並將物件從一個場景轉移到另一個場景,同時為角色進行實例化
- 處理 2D 和 3D 視差背景
- 創建音頻遊戲控制器以修正聲音重疊並創建背景音頻音軌
- 應用敵方 AI 的基本知識,如路徑尋找和創建獨特的敵方行為及其意識
方法
本書以易於理解的逐步風格撰寫。每個主題都涵蓋了現實世界的範例,讓您能夠充分利用本書並能夠將這些技術直接應用到您的遊戲中。
本書的讀者對象
如果您是一位有興趣使用 Unity 開發遊戲的程式設計師,並希望通過編寫腳本來自定義您的遊戲,那麼這本書適合您。為了充分利用本書,您需要熟悉 Unity。本書非常適合那些有使用 Unity 構建遊戲經驗並且對編程有一定了解的人,特別是 JavaScript。然而,如果您是使用其他語言的程式設計師,您應該能夠相對輕鬆地理解本書。