Unity 3.x Scripting (Paperback)
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$417 -
$780$663 -
$520$442 -
$750$638 -
$580$493 -
$480$379 -
$850$723 -
$1,000$950 -
$780$616 -
$450$383 -
$680$578 -
$650$514 -
$550$468 -
$450$383 -
$680$578 -
$580$458 -
$480$379 -
$680$578 -
$580$493 -
$680$612 -
$620$527 -
$390$308 -
$680$578 -
$199$179
相關主題
商品描述
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遊戲中,撰寫高效且可重複使用的腳本,以建立自定義角色、遊戲環境,並控制敵人的人工智慧。
- 讓你的角色與按鈕互動,並編寫觸發動作序列的程式
- 創建自定義角色,並編寫動態物件和玩家與之互動的程式碼
- 同步角色和環境物件的移動
- 添加和控制新角色和現有角色的動畫
- 本書以簡單的逐步方式撰寫,並提供實際示例,是市場上唯一專注於Unity腳本的書籍
詳細內容:
Unity是一個強大的工具,適合任何希望建立有趣且可銷售的遊戲的人。Unity的一個令人興奮的方面是它可以輕鬆擴展以建立自定義角色和遊戲環境。腳本是實現所有這些的關鍵,但它具有陡峭的學習曲線。
本書將教你關於Unity腳本的一切。它將帶你進入創建、包含和調整腳本以實現各種任務。其中一些任務包括控制角色、動畫、物件控制、處理遊戲數據和敵人AI。
本書將從簡單任務的腳本開始,並逐步發展到更高難度的任務。前幾章包括編寫腳本以建立自定義遊戲環境和創建角色並控制它們。下一組章節涵蓋了安排攝像機視圖、控制和創建動畫。
本書還介紹了建立物件、為其添加動畫和編寫角色與物件互動的程式碼,並創建物品槽和物品庫,角色可以在其中拖放不同的物品圖標。最後,本書教授如何添加背景音效並討論基本的敵人AI腳本。
你將從本書中學到什麼:
- 使用現有的腳本來創建默認角色控制器
- 將默認角色控制器腳本附加到現有的遊戲物件
- 通過代碼設置自己的攝像機和角色控制器架構
- 編寫動態和靜態物件的程式碼,如生物槍、彈藥、生命值、角色屬性增強、寶箱,並使角色與之互動
- 創建角色物品槽和物品庫,玩家可以將不同的物品圖標拖放到物品槽中
- 將現有的動畫腳本附加到角色和物件上,並創建新的動畫
- 分配和裝備玩家或物件上的選定物品,使它們變得有效並可使用,例如為生物槍添加射擊功能
- 創建和維護分數以控制角色目標並保存遊戲數據
- 設置一個控制場景轉換和在場景之間傳輸物件的系統,包括角色的實例化
- 處理2D和3D視差背景
- 創建音頻遊戲控制器以修復聲音重疊並創建背景音頻軌道
- 敵人AI的基礎知識,如尋路和創建不同的敵人行為和意識
這本書的特點:
本書以易於理解的逐步方式撰寫,涵蓋了每個主題的實際示例,讓你能夠充分利用本書,並能夠直接將這些技術應用於你的遊戲中。
本書的讀者:
如果你是一個有興趣使用Unity開發遊戲並希望通過編寫腳本自定義你的遊戲的程序員,那麼這本書就是為你而寫的。要充分利用本書,你需要熟悉Unity。本書適合那些有使用Unity構建遊戲的經驗並且對編程有一定了解的人,尤其是JavaScript。然而,如果你是使用其他語言的程序員,你應該能夠相對輕鬆地理解本書。