logo资料库

Building an RPG with Unity 2018 2nd Edition.pdf

第1页 / 共436页
第2页 / 共436页
第3页 / 共436页
第4页 / 共436页
第5页 / 共436页
第6页 / 共436页
第7页 / 共436页
第8页 / 共436页
资料共436页,剩余部分请下载后查看
Title Page
Copyright and Credits
Building an RPG with Unity 2018 Second Edition
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
What is an RPG?
A brief history of the genre
Characteristics of an RPG
Story and setting
A glimpse of a cRPG story
Exploration and quests
A glimpse at our exploration and quests
Inventory system
Character attributes and actions
Experience and leveling
Combat system
User interaction and graphics
Existing or upcoming RPG games
MU Legend
Titan Siege
Citadel: Forged with Fire
Cyberpunk 2077
Patterns in RPG
Terminology
Contest tree
Last Man Standing
Negotiated Contest
Summary
Planning the Game
Building our RPG
The story of the Zazar dynasty
Backstory
Exploration and quests
Awakening
The village
Broken forest – the horizon
The kingdom
Asset inventory
Environment assets
Medieval Environment Pack
Terrain Toolkit 2017
Nature Starter Kit 2
Character assets
Barbarians
Orcs
Villagers
Free Assets
Level design
Setting the stage
Terrain toolkit in a nutshell
The Awakening
Using the terrain model
Using a custom toolkit
Skybox
Testing the level
Creating the main menu
Creating the GameMaster script
Summary
RPG Character Design
Character definitions
Character assets
Base character class attributes
Character states     
Character model
Default character models
Barbarian
Villager
Orc
Let's get started
Rigging your model
Character motion
Animator Controller
Animation states
Character controller
Modification to animations
Inverse Kinematics
Setting the animation curve
Summary
The Game Mechanics
Customizing the player character
Customizable parts
User interface
The code for character customization
Preserving our character state
Recap
Non-player characters
Non-player character basics
Setting up the non-player character
NPC Animator Controller
NPC Attack
NPC AI
PC and NPC interaction
Summary
GameMaster and Game Mechanics
GameMaster
Managing game settings and audio
Managing scenes
Improving GameMaster
Level controller
Audio controller
Player data management
PC class enhancements
Character customization class update
Changes to the game level controller
Testing
Summary
Inventory System
Designing an inventory system
Weighted inventory
Determining item types
Creating an inventory item
Creating the prefab
Adding an inventory item agent
Inventory items defined as prefabs
Designing an inventory interface
Creating the inventory UI framework
Designing a dynamic item viewer
Adding a scroll view
Adding elements to PanelItem and Scroll View
Adding txtItemElement dynamically
Building the final inventory item UI
Integrating the UI with the actual inventory system
Hooking the category buttons and displaying the data
Testing the inventory system
Inventory items and the player character
Applying inventory items
How it looks
Summary
User Interface and System Feedback
Designing a heads-up display
HUD basics
Our design
HUD framework
Completing our HUD design
Character info panel
Active inventory items panel
Special items panel
Integrating the code
Enemy stats in the HUD
NPC stats user interface
Creating the NPC canvas
NPC taking a hit
Enhancing the code
Summary
Multiplayer Setup
Challenges of a multiplayer game
Initial multiplayer game
Fundamental networking components
My tank networking project
Adding a player character
Variable synchronization
Network callbacks
Sending commands
Client RPC calls
Creating the cannonball for the tank
Creating the tank prefab and configuring the network lobby manager
Adding the enemy tank
Building and testing
Network-enabling RPG characters
Creating a scene for our RPG
Networked player character
Networked non-player character
Synchronizing player customization and items
Spawning NPCs and other items
Testing our network-enabled PC and NPC
What's next?
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
Building an RPG with Unity 2018 Second Edition Leverage the power of Unity 2018 to build elements of an RPG.
Vahé Karamian BIRMINGHAM - MUMBAI
Building an RPG with Unity 2018 Second Edition Copyright © 2018 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Commissioning Editor: Kunal Chaudhari Acquisition Editor: Noyonika Das Content Development Editor: Francis Carneiro Technical Editor: Ralph Rosario Copy Editor: Safis Editing Project Coordinator: Devanshi Doshi Proofreader: Safis Editing Indexer: Mariammal Chettiyar Graphics: Jason Monteiro Production Coordinator: Aparna Bhagat First published: March 2016 Second edition: July 2018 Production reference: 1270718 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78862-346-9 www.packtpub.com
To my wife Armineh for being my loving partner throughout our joint life-journey. To my son and daughter, Maximilian and Makayla. – Vahé Karamian
mapt.io Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe? Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals Improve your learning with Skill Plans built especially for you Get a free eBook or video every month Mapt is fully searchable Copy and paste, print, and bookmark content
PacktPub.com Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktP ub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
分享到:
收藏