Unity in Action, 2nd Edition--2018

所需积分/C币:50 2018-05-08 08:26:24 29.76MB PDF

Manning’s bestselling and highly recommended Unity book has been fully revised! Unity in Action, Second Editionteaches you to write and deploy games with the Unity game development platform. You’ll master the Unity toolset from the ground up, adding the skills you need to go from application coder t
Praise for the First edition From the first edition of Unity in Action by Joseph Hocking The text is clear and concise, and the examples are outstanding. As a new user, I found this book to be an invaluable resource DAN KACENJAR SR, Cornerstone Software All the roadblocks evaporated, and I took my game from concept to build in short order. PHILIP TAFFET. SOHOSoft llc "Gets you up and running in no time Sergio arbeo, codecantor Covers all the key elements for using Unity effectively SHILOH MORRIS, Southern Nevada Water authority Useful and to the point! You will learn the basics and more to start developing your own games VICTOR M. Perez, Software developer Recommended for anyone starting out with Unity Alex LUCAS, Independent contractor Teaches with good clean code and gives ideas on how to alter it for more interesting results AMAZON READER Unity in action Multiplatform game development in C# SECOND EDITION JOSEPH HOCKING MANNING SHELTER ISLAND Foronlineinformationandorderingofthisandothermanningbookspleasevisitwww.manning.com The publisher offers discounts on this book when ordered in quantity For more information, please contact Special Sales Department Manning Publications Co 20 Baldwin road PO Box 761 Shelter island. Ny11964 Email:orders@manning.com o2018 by Manning Publications Co. All rights reserved No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps Recognizing the importance of preserving what has been written, it is Manning's policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine Manning publications Co Development editor: Candace West 20 Baldwin Road Technical development editor: Rene van den berg PO Box 761 Review editor: Ivan martinovic Shelter island. ny 11964 Project editor: David Novak Copy editor: Safis Editing Proofreader: Elizabeth martin Technical proofreader: Shiloh morris Typesetter: Happenstance Type-O-Ram Cover designer: Marija Tudor ISBN9781617294969 Printed in the united states of america 12345678910-EBM-2221201918 brief contents PART I FIRST STEPS 00。0。00000。000。000。00000000000。000。。。 1 Getting g to know un 2 Building a demo that puts you in 3D space 24 3 Adding enemies and projectiles to the 3d game 50 4 Developing graphics for your game 74 PART 2 GETTING COMFORTABLE 000000000900000000000000000000000000000000 101 5 Building a Memory game using Unity's 2D functionality 108 6 Creating a basic 2D Platformer 127 7 Putting a gUI onto a game 146 8 Creating a third-person 3D game: player movement and animation 169 9 Adding interactive devices and items within the game 197 PART 3 STRONG FINISH 223 10 Connecting your game to the internet 225 11 Playing audio: sound effects and music 252 13 Deploying your game to players devices 30?c 276 12 Putting the parts together into a complete game contents foreword xu preface acknowledgments xix about this book xxi bout the authe about the cover illustration xxvii PART 1 FIRST STEPS Getting to know Unity 3 II Why is Unity so great? 4 Unity's strengths and advantages 4. Downsides to be aware of 7. Example games built with Unity 7 1. 2 How to use Unity 12 Scene view, Game view, and the Toolbar 1 3· Using the mouse and keyboard 14. The Hierarchy view and the Inspector anel 15. The project and console tabs 16 1.3 Getting up and running with Unity programming 17 How code runs in Unity script components 18. Using MonoDevelop, the cross-platform IdE 19. Printing to the console Hello world! 21 contents Building a demo that puts you in 3D space 24 2.1 Before you start. 25 Planning the project 25: Understanding 3D coordinate s力aCe26 Begin the project: place objects in the scene 28 The scenery: floor, outer walls, and inner walls 29. Lights and cameras 31. The player's collider and viewpoint 33 2.3 Making things move: a script that applies transforms 34 Visualizing how movement is programmed 34. Writing code to implement the diagram 34. Local us. global coordinate space 36 2.4 Script component for looking around: Mouse Look 37 Horizontal rotation that tracks mouse movement 38. Vertical rotation with limits 39 Horizontal and vertical rotation at the same time 41 2.5 Keyboard input component: first-person controls 44 Responding to keypresses 44. Setting a rate of movement independent of the computer's speed 45. Moving the Character Controller for collision detection 46. Adjusting components for walking instead offlying 47 Adding enemies and projectiles to the 3D game 50 8.1 Shooting g ia raycasts 51 What is raycasting? 51. Using the screen Point ToRay command for shooting 52. Adding visual indicators for aiming and hits 54 3 2 Scriptin g reactive targets 57 Determining what was hit 57. Alerting the target that it was hit 58 8.3 Basic wandering Al 60 Diagramming how basic Al works 60."Seeing obstacles with a raycast 61. Tracking the character's state 63 8.4 Spawning enemy prefabs 64 What is a prefab? 64. Creating the enemy prefab 65. Instantiating from an invisible Scene Controller 66 8.5 Shooting by instantiating objects 68 Creating the projectile prefab 68. Shooting the projectile a colliding with a target 70. Damaging the player 72


评论 下载该资源后可以进行评论 2

dongyw10 非常好,最新版本
utmostblue 还不错啊,原版pdf很好

关注 私信 TA的资源