加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 Unity 3.X 游戏开发经典教程

Unity 3.X 游戏开发经典教程.pdf

Unity 3.X 游戏开发经典教程

faruba
2013-10-11 0人阅读 举报 0 0 暂无简介

简介:本文档为《Unity 3.X 游戏开发经典教程pdf》,可适用于IT/计算机领域

UnityxGameDevelopmentEssentialsGamedevelopmentwithC#andJavascriptBuildfullyfunctional,professionalDgameswithrealisticenvironments,sound,dynamiceffects,andmore!WillGoldstoneBIRMINGHAMMUMBAIDownloadfromWow!eBook<wwwwowebookcom>UnityxGameDevelopmentEssentialsGamedevelopmentwithC#andJavascriptCopyright©PacktPublishingAllrightsreservedNopartofthisbookmaybereproduced,storedinaretrievalsystem,ortransmittedinanyformorbyanymeans,withoutthepriorwrittenpermissionofthepublisher,exceptinthecaseofbriefquotationsembeddedincriticalarticlesorreviewsEveryefforthasbeenmadeinthepreparationofthisbooktoensuretheaccuracyoftheinformationpresentedHowever,theinformationcontainedinthisbookissoldwithoutwarranty,eitherexpressorimpliedNeithertheauthor,norPacktPublishing,anditsdealersanddistributorswillbeheldliableforanydamagescausedorallegedtobecauseddirectlyorindirectlybythisbookPacktPublishinghasendeavoredtoprovidetrademarkinformationaboutallofthecompaniesandproductsmentionedinthisbookbytheappropriateuseofcapitalsHowever,PacktPublishingcannotguaranteetheaccuracyofthisinformationFirstpublished:OctoberSecondedition:DecemberProductionReference:PublishedbyPacktPublishingLtdLiveryPlaceLiveryStreetBirminghamBPB,UKISBNwwwpacktpubcomCoverImagebyWillGoldstone(willunitydcom)CreditsAuthorWillGoldstoneReviewersRuneSkovboJohansenMarkBacklerDavidFugèreLamarreBastienFontaineSteffenFranzAaronGroveBenLeeAcquisitionEditorWilsonD'souzaDevelopmentEditorMaitreyaBhakalTechnicalEditorsAaronRosarioApoorvaBolarProjectCoordinatorJovitaPintoProofreaderAaronNashIndexerMonicaAjmeraMehtaProductionCoordinatorMelwynD'saCoverWorkMelwynD'saForewordWhenwebegancreatingUnity,wewerejustthreeprogrammersworkingonabeautifullittlegameThereweren'tanygoodgameenginesthatonecouldlicensewithoutputtingdownwadsofcash,sowecreatedourownWeeventuallydecidedthatweenjoyedthechallengeofmakinggreattoolsevenmorethanmakinggames,andaftersomesoulsearchingwerealizedthatthetoolswehadbeencreatingcombinedwithasimplelicensingstructureandanopencommunityhadthepotentialtochangethewaythatdeveloperscreate,distribute,andplaygamesItwasn'talwaysaneasyroadtowherewearetodayRidiculouslylongdaysandlatenights,gigsservingsandwichesandmakingwebsitesforlawfirms,andgeneralhardshipOnce,weweretoldbyapotentialinvestor(hepassedonthedeal)thatourdreamof'democratizinggamedevelopment'hadainchanceofworkingoutWecouldthinkofnothingbettertodothantakeontheodds!Stuffinginsanelycomplextechnologyintoapolishedpackage,andmakingitassimpleashumanlypossiblewasjobone,andsowewerethrilledtoseethefirstbookaboutoursoftware,UnityGameDevelopmentEssentialsreleasedinThebookhelpedmanypeoplegetoffthegroundwithUnity,andsowhenWilltoldmehewasduetoreleaseanupdatededitionIwasonlytoohappytobeaskedtowriteitsforewordAlongstandingmemberoftheUnitycommunity,wefirstmetWillbackinwhenhewasteachinggamedevelopmentwithUnityatUKbasedBournemouthUniversityHewentontoproducesomeofthefirstUnityvideotutorialsforhisstudentsandsharedtheseonourforums,helpingagenerationofearlyadopterspickupUnityversionandupwardsNowworkingwithusatUnityTechnologies,Willhasretainedmuchofhisformercareerinteachinghelpingustogrowadoptionbynewusersthroughcreatingtrainingmaterials,givingtalksandkeepingactiveinourcommunityThenewUnityxGameDevelopmentEssentialsyouholdinyourhand(orreadonyourmobileordesktop!)isrewrittenfromthegroundupbutholdsontoeverythingthatwassoniceaboutthefirstedition:eachpartoftheoriginalhasbeenexpanded,improvedorelaboratedupon,anditalsoincludessomeofthemanyfeaturesweaddedtoUnitysincethenYouwillnotonlylearnaboutnewfeatureshoweverWillthoroughlywalksthroughthebasics,throughscripting,learningscripting,andevenaddressesthatperpetualUnityconundrum:ShouldIlearnC#orJavascriptbycoveringbothprogramminglanguagesinparallel,hisbookletsyoudecidewhatmakesthemostsenseforyouWhetheryouareanartist,leveldesigner,orsimplyayoungpersonchoosinggamecreationasapotentialcareer,thisbookrepresentsafantasticstartforlearningUnityStartingoutbycoveringtheessentialelementsofD,you'lllearneverythingfromscratchnopriorknowledgeisassumed,butthebookmovesatapacethatwillkeepyouturningpagesandwritingcode!I'dliketopersonallywelcomeyoutotheUnitycommunity,andhopeyouhaveasmuchfunreadingthisbookaswedoworkingonUnityDavidHelgasonCEOCofounder,UnityTechnologiesAbouttheAuthorWillGoldstoneisalongstandingmemberoftheUnitycommunityandworksforUnityTechnologiesasaTechnicalSupportAssociate,handlingeducationalcontent,marketing,communityrelationsanddevelopersupportWithanMAinCreativeEducation,andmanyyearsexperienceasalecturerinhighereducation,WillwrotethefirsteverUnitybook,theoriginalUnityGameDevelopmentEssentials,andalsocreatedthefirsteverexternalvideotutorialsforthepackageThroughhissitehttp:wwwunitydstudentcom,WillhelpstointroducenewuserstothegrowingcommunityofdevelopersdiscoveringUnityeverydayHealsoblogsintermittentlyathttp:willgoldstonecomIwouldliketothankthefollowingpartiesforhelpingtoproducethisbook,andbeinggenerallyawesomeTeckLeeTan(LoTeKk)forcreatingtheArtAssetsinthebookalltheNinjasatUnityTechnologies:RuneSkovboJohansen,NicholasFrancis(unitynich),DavidHelgason(davidhelgason),JoachimAnte,GrahamDunnett,AndyBrammall(andybrammall),AndyStark,CharlesHinshaw,RoaldHoyerHansen(brokenpoly),CarlCallewaert(carlunity),ChrisPope(CreativeChris),DaveShorter,MarkHarkness(IAmRoflHarris),RicardoArango,RobFairchild(robfairchild),OllyNicholson,CathyYates,AdamBuckner,RichardSykes,EmilJohansen(AngryAnt),EthanVosburgh,JoeRobins(JoeRobins)…andthemanymoreawesomeguysandgirlsIcan'tfithere!PlusawesomeUnitypoweredfriendsBobBerkebile(pixelplacement),TomJackson(quickfingerz),ThomasPasieka(thomaspasieka),CatBurton(catburton),MikeRenwick(runonthespot),MarkBackler,RussMorris(therussmorris),JasperStocker(jasperstocker),PaulTondeur(paultondeur),DavidFugèreLamarre,BenjaminLee,SteffenFranz,AaronGrove,BastienFontaineAndofcoursenotforgettingMum,Dad,Rach,Penny,andmyawesomefriendsAbouttheReviewersRuneSkovboJohansenhasbeenpartofthedevelopmentteamatUnityTechnologiessince,workingonexpandingthefeaturesetoftheeditorandtighteningtheworkflowsandinterfaceHeisbasedinCopenhagen,DenmarkBesideseditorworkhehasdevelopedproceduralanimationtools,writtensectionsoftheUnitydocumentation,andhasbeenaprogrammeronseveraloftheofficialUnitydemosIngeneral,RuneispassionateaboutcreatingsolutionsthatmakeadvancedandcooltechnologysimpletouseHehasacreativeandcrossdisciplinaryapproachtosoftwaredevelopmentgroundedinaMaster'sdegreeinMultimediaGameProgrammingandaninterestsincechildhoodingraphics,animation,andcodingRuneengageswiththegamedevelopmentcommunityonlineinvariousforumsandblogsandofflinethroughgamejamsandothereventsHehasbeenaspeakerattheGameDevelopersConferenceandUnity'sownUniteConference,andhashelpedorganizetheNordicGameJamInhissparetimeRuneenjoystheoutdoorinparksandforests,dailybiking,andreadingHealsospendstimeworkingcreativelywithgraphicsandanimation,anddevelopingsmallgamesHehasaspecialinterestinanythingproceduralandispersistentlytryingtofindthebestwaytoinstructhiscomputertogenerategiantsprawlingworldsforhimHewritesabouthisprojectsatrunevisioncomMarkBacklerisaGameDesignerwhohasbeenworkinginthegamesindustryforoveryearsHehasworkedatEA,KujuandiscurrentlyatLionheadStudiosworkingonFable:TheJourneyHehasworkedonnumerousgamesincludingHarryPotterandtheOrderofthePhoenix,MiloandKateandtheBaftaawardwinningFableHecanbefoundonTwitteratMarkBacklerIwouldliketothankWillforwritingthisbook,whichhashelpedmegetuptospeedwithUnitysoquickly,Catforputtingusintocontactinthefirstplace,thetalentedandcreativepeopleatLionheadfromwhomI'mstilllearningeveryday,andmyfriends,especiallyAnish,TomandChuck,andmyfamilyforbeingallroundawesomeDavidFugèreLamarreholdsaComputerEngineeringdegreefromtheÉcolePolytechniquedeMontréalandaMaster'sdegreeinEngineeringManagementfromtheNewJerseyInstituteofTechnologyHisvideogamedevelopmentexperiencestartedinwhenheworkedforBehaviourInteractive(ArtificialMindMovement)inMontreal,CanadaasagameprogrammeronvariousconsoletitlesInheworkedforPhoenixStudioinLyon,FranceagainasagameprogrammerforaconsoletitleInhecofoundedIllogikaStudios(http:illogikacom),anindependentgamedevelopmentcompanyinMontrealspecializinginUnitygamedevelopmentHealsoteachesUnityprotrainingclassesattheCentreNadinMontrealandhisinvolvedwithlocalcollegesincreatinggameprogrammingcoursesBastienFontaineisayearoldFrenchgamedesignerscripterHepassedatwoyeardiplomafromauniversityinstituteofcomputerscience(C,Java,PHP,SQL,andsoon)atNice,France,thenayeardiplomaonARIESprivateschoolonGameDesignVideogamejobsformationHelearnedsoftwaresuchasVirtools,Maya,DSMax,PhotoshopHefinishedhisstudieswithayeardiplomafrom"UniversitéLyon"(Gamagora)wherehelearnedLevelDesignandtoolssuchasUnrealEngine,Unity,SketchUp,andimprovedhisgamedesignskillsHeworkedwithUnityatCreativePatterns(Strasbourg,France)todevelopforiPhoneandatIllogikaStudio(Montreal,Canada)todevelopfortheiPhonetooHealsoworkedatIllogikaStudiowithDavidFugèreLamarre,anotherreviewerofthisbookSteffenFranziscurrentlytheTechnicalDirectoratHiveMedia(wwwhivemediatv)abrandedsocialgamecompanyintheSanFranciscoBayAreaHeisalsotheLeadEngineeronDeadliestCatchTheSocialGame,aFacebookgamebasedonDiscoveryChannel'shitshowSinceearninghisBSinVisualandGameProgrammingatTheArtInstituteofCaliforniaSanFrancisco,SteffenhasbeendevelopingonUnityforoverthreeyears,workingontitlessuchasGlobworld,achildfriendlyvirtualworld,DisneyOnlineTRONLegacy,andCordy,aDplatformerforGoogle'sAndroidmobileplatformIwouldliketothanktheauthorforthisopportunitytosharemyknowledgeandprofessionalexperienceoftheUnityengineMostofallIwouldliketothankmyfamily,especiallyourtwoyearoldtoddlertakingtheoccasionalnaptime,allowingmetoreviewthisbookandhopefullygiveyoumoreinsightonhowchallenging,yetfungamedevelopmentcanbeAaronGroveisanawardwinningVisualEffectsSupervisorwithoveryearsexperience,creatinghighendvisualeffectsfortelevisioncommercialsandmusicvideosinAustralia,UnitedKingdomandUnitedStatesofAmericaAaron'screativityandknowledgeofDvisualeffects(technicalandartistic)combinedwithhispassionforgamesgiveshimthedrivetocreateandcraftvisuallystunninggamesIn,AaronwastheVisualEffectsSupervisorontheawardwinning(DDYellowPencilAward)musicvideoTwoWeeksbyGrizzlyBearCurrentlyAaronisthecreativedirectorandcofounderofBlowfishStudioswhichissolelyfocusedonUnitygamedevelopmentMoreinformationcanbefoundatwwwblowfishstudioscomBenLeeisasoftwareengineerandhasbeenworkinginthecomputergameindustryforoveryearsonprojectsinvolvingEA,Intel,nVidiaandMHehasextensiveexperiencewithdesigningandprogrammingcomputergameenginesandallotheraspectsofgamesoftwaredevelopmentforavarietyofhardwareplatformsMostrecentlyBencofoundedBlowfishStudios(wwwblowfishstudioscom)andhassincebeenfocusedsolelyonUnitygamedevelopmentwwwPacktPubcomSupportfiles,eBooks,discountoffersandmoreYoumightwanttovisitwwwPacktPubcomforsupportfilesanddownloadsrelatedtoyourbookDidyouknowthatPacktofferseBookversionsofeverybookpublished,withPDFandePubfilesavailableYoucanupgradetotheeBookversionatwwwPacktPubcomandasaprintbookcustomer,youareentitledtoadiscountontheeBookcopyGetintouchwithusatservicepacktpubcomformoredetailsAtwwwPacktPubcom,youcanalsoreadacollectionoffreetechnicalarticles,signupforarangeoffreenewslettersandreceiveexclusivediscountsandoffersonPacktbooksandeBookshttp:PacktLibPacktPubcomDoyouneedinstantsolutionstoyourITquestionsPacktLibisPackt'sonlinedigitalbooklibraryHere,youcanaccess,readandsearchacrossPackt'sentirelibraryofbooksWhySubscribe•FullysearchableacrosseverybookpublishedbyPackt•Copyandpaste,printandbookmarkcontent•OndemandandaccessibleviawebbrowserFreeAccessforPacktaccountholdersIfyouhaveanaccountwithPacktatwwwPacktPubcom,youcanusethistoaccessPacktLibtodayandviewnineentirelyfreebooksSimplyuseyourlogincredentialsforimmediateaccessTableofContentsPrefaceChapter:EntertheThirdDimensionGettingtogripswithDCoordinatesLocalspaceversusworldspaceVectorsCamerasProjectionmodeDversusDPolygons,edges,vertices,andmeshesMaterials,textures,andshadersRigidbodyphysicsCollisiondetectionEssentialUnityconceptsTheUnitywayanexampleAssetsScenesGameObjectsComponentsScriptsPrefabsTheinterfaceTheSceneviewandHierarchyControltoolsFlythroughScenenavigationControlbarSearchboxCreatebuttonTheInspectorTheProjectwindowDownloadfromWow!eBook<wwwwowebookcom>TableofContentsiiTheGameviewSummaryChapter:PrototypingandScriptingBasicsYourfirstUnityprojectAbasicprototypingenvironmentSettingthesceneAddingsimplelightingAnotherbrickinthewallBuildingthemasterbrickAndsnap!It'sarowGroupingandduplicatingwithemptyobjectsBuilditup,knockitdown!SettingtheviewpointIntroducingscriptingAnewbehaviourscriptor'class'What'sinsideanewC#behaviourBasicfunctionsVariablesinC#What'sinsideanewJavascriptbehaviourVariablesinJavascriptCommentsWallattackDeclaringpublicvariablesAssigningscriptstoobjectsMovingthecameraLocal,private,andpublicvariablesUnderstandingTranslateImplementingTranslateTestingthegamesofarMakingaprojectileCreatingtheprojectileprefabCreatingandapplyingamaterialAddingphysicswithaRigidbodyStoringwithprefabsFiringtheprojectileUsingInstantiate()tospawnobjectsAddingaforcetotheRigidbodySummaryChapter:CreatingtheEnvironmentDesigningthegameUsingtheterraineditorTerrainmenufeaturesImportingandexportingheightmapsTableofContentsiiiSettingtheresolutionMassplacetreesFlattenHeightmapRefreshtreeanddetailprototypesTheterraintoolsetTerrainScriptRaiseheightPaintheightSmoothHeightPaintTexturePlaceTreesPaintDetailsTerrainSettingsCreatingtheislandsun,sea,andsandStepSettinguptheterrainStepCreatingtheIslandoutlineStepVolcano!StepAddingtexturesStepTreetimeStepThegrassisalwaysgreenerStepLettherebelights!StepWhat'sthatsoundStepLook,there!Upintheskybox!StepOpenwaterStepGoingwalkaboutStepFinaltweaksSummaryChapter:PlayerCharactersandFurtherScriptingWorkingwiththeInspectorTagsLayersPrefabsandtheInspectorAnatomyofacharacterDeconstructingtheFirstPersonControllerobjectParentchildissuesFirstPersonControllerobjectObject:FirstPersonController(parent)Object:Graphics(child)Object:MainCamera(child)FurtherscriptingCommandsVariablesVariabledatatypesUsingvariablesFullexampleFunctionsTableofContentsivUpdate()OnMouseDown()WritingcustomfunctionsReturntypeArgumentsDeclaringacustomfunctionCallingacustomfunctionIfelsestatementsMultipleconditionsForloopsInterscriptcommunicationandDotSyntaxAccessingotherobjectsFind()andFindWithTag()SendMessageGetComponentCommentsFurtherreadingScriptingforcharactermovementDeconstructingthescriptFullscript(Javascript)VariabledeclarationStoringmovementinformationMovingthecharacterCheckinggroundedScriptcommandsSummaryChapter:InteractionsExternalmodelingapplicationsCommonsettingsformodelsMeshesNormalsandTangentsMaterialsAnimationsAnimationCompressionSettinguptheoutpostmodelAddingtheoutpostPositioningRotationAddingcollidersAddingtheRigidbodyAddingaudioDisablingautomaticanimationTableofContentsvCollisionsandtriggersRaycastingTheframemissPredictivecollisiondetectionOpeningtheoutpostApproachCollisiondetectionCreatingnewassetsScriptingforcharactercollisiondetectionApproachRaycastingDisablingcollisiondetectionwithcommentsMigratingcodewritingaDoorManagerscriptTidyingPlayerCollisionsCastingtherayResettingthecolliderApproachTriggercollisiondetectionCreatingandscalingthetriggerzoneScriptingfortriggercollisionsSummaryChapter:Collection,Inventory,andHUDCreatingthepowercellprefabDownloading,importing,andplacingTaggingthepowercellColliderscalingandrotationEnlargingthepowercellAddingatriggercolliderColliderscaleAddingtheRigidbodyCreatingthepowercellscriptAddingrotationAddingTriggerCollisionDetectionSavingasaprefabScatteringpowercellsWritingthePlayerInventorySavingthechargevalueSettingthevariablestartvalueAudiofeedbackAddingtheCellPickup()functionAddingtheInventorytotheplayerRestrictingoutpostaccessRestrictingdooraccesswithacellcounterDisplayingthepowercellHUDImp

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

文档小程序码

使用微信“扫一扫”扫码寻找文档

1

打开微信

2

扫描小程序码

3

发布寻找信息

4

等待寻找结果

我知道了
评分:

/49

Unity 3.X 游戏开发经典教程

仅供在线阅读

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利