关闭

关闭

关闭

封号提示

内容

首页 Game Coding Complete 3rd Edition

Game Coding Complete 3rd Edition.pdf

Game Coding Complete 3rd Edition

DiDi-OutOfMemory
2011-10-10 0人阅读 0 0 0 暂无简介 举报

简介:本文档为《Game Coding Complete 3rd Editionpdf》,可适用于IT/计算机领域

CopyrightGameCodingComplete,ThirdEditionMike―MrMike‖McShaffryetalPublisherandGeneralManager,CourseTechnologyPTR:StacyLHiquetAssociateDirectorofMarketing:SarahPanellaContentProjectManager:JessicaMcNavichMarketingManager:JordanCaseyAcquisitionsEditor:HeatherHurleyProjectandCopyEditor:MartaJustakTechnicalReviewer:SaschaFriedmann,VincentMagiyaPTREditorialServicesCoordinator:JenBlaneyInteriorLayoutTech:BillHartmanCoverDesigner:KrisTaylorIndexer:LarrySweazyProofreader:HeatherUrschelCourseTechnology,apartofCengageLearningChannelCenterStreetBoston,MAUSAForyourlifelonglearningsolutions,visitcourseptrcomVisitourcorporateWebsiteatcengagecomPrintedintheUnitedStatesofAmerica©CourseTechnology,apartofCengageLearningALLRIGHTSRESERVEDNopartofthisworkcoveredbythecopyrighthereinmaybereproduced,transmitted,stored,orusedinanyformorbyanymeansgraphic,electronic,ormechanical,includingbutnotlimitedtophotocopying,recording,scanning,digitizing,taping,Webdistribution,informationnetworks,orinformationstorageandretrievalsystems,exceptaspermittedunderSectionoroftheUnitedStatesCopyrightAct,withoutthepriorwrittenpermissionofthepublisherForproductinformationandtechnologyassistance,contactusatCengageLearningCustomerSalesSupport,Forpermissiontousematerialfromthistextorproduct,submitallrequestsonlineatcengagecompermissionsFurtherpermissionsquestionscanbeemailedtopermissionrequestcengagecomMicrosoft,MicrosoftWindows,VisualStudio,InternetExplorer,Xbox,Xbox,andDirectXareeitherregisteredtrademarksortrademarksofMicrosoftCorporationintheUnitedStatesandorothercountriesdsMaxandMayaareeitherregisteredtrademarksortrademarksofAutodesk,IncintheUnitedStatesandorothercountriesGamecubeandWiiaretrademarksofNintendoCompany,LtdintheUnitedStatesandorothercountriesPlayStation,PlayStation,andPlayStationareeitherregisteredtrademarksortrademarksofMicrosoftCorporationintheUnitedStatesandorothercountriesPhotoshopisaregisteredtrademarkofAdobeSystemsIncorporatedintheUnitedStatesandorothercountriesUltimaandUltimaOnlineareeitherregisteredtrademarksortrademarksofElectronicArts,IncintheUnitedStatesandorothercountriesAllothertrademarksarethepropertyoftheirrespectiveownersLibraryofCongressControlNumber:ISBN:eISBN:CengageLearningisaleadingproviderofcustomizedlearningsolutionswithofficelocationsaroundtheglobe,includingSingapore,theUnitedKingdom,Australia,Mexico,Brazil,andJapanLocateyourlocalofficeat:internationalcengagecomregionCengageLearningproductsarerepresentedinCanadabyNelsonEducation,LtdDedicationThisbookandmylifearededicatedtomywifeandmybestfriend,RobinKudosFromBluePhoenix:Idefinitelyhopethatit‘snotthelastpublicationyoumake,I‘msurebookscanbeachallenge,butyou‘vedoneanamazingjobKudostoyou,theeditors,publisher,andeveryonewhohelpedproducethisfinebookFromCdrJ:OverallthisbookisprettymuchallmeatIcan‘trecommendithighlyenough,andI‘vepraisedittomyentireteamIt‘sprobablythemostusefulgamedevelopmenttextonmyshelfFromPaulJeffreyatAmazoncomButhere‘satestyoucantakeforyourselfgotowwwmcshaffrycomGameCodeandseehowMikeMcShaffryisstillhelpingfolkswho‘vereadhisbook(oranyonewhopostsonthesiteforthatmatter)He‘sstillgivingfreeadviceonhisbook‘sforum,whenmostotherauthorswon‘tevenrespondtoanemailFromCodeheadonAmazoncomThisisanexcellentbookTheauthorclearlyisanexpertonthesubject,andhehasspentyearsdevelopingmainstreamcommercialgames(forexample,Ultimaseries)Thisisarefreshingchangefromsomanybooksouttherewrittenbypeoplewithsometheoreticalknowledge,butlittlepracticalapplicationIwillbuyanybookthisguywritesinthefutureCan‘tgiveabetterrecommendationthanthatFromspotlandonAmazoncomIhavestudiedalotofthe―standard‖gamecodingbooksrecentlyThisisthefirstgamebookIhavereadthatIwassorrywhenIgottotheendbecausetherewasn‘tanymoreIhadtoreaditagainItisfullofrelevantcontent,pepperedwithrealinsightsfromsomeonewhohasobviouslybeenthereandgottentheTshirtBecauseofitsbreadthofscope,ithashelpedmefillinalotofgapsleftbysomeoftheothertextsIhavebeenprogramminginCforoveryears,andIstilllearnedafewneattricksOneofthesewasdirectlyrelevanttoaprogramIamwritingthanksforthetip!ForewordLetmestartbyadmittingacoupleofthingsFirst,I‘veneverwrittenaforewordforabookbeforeI‘vewrittenbooksbutneveraforewordHonestly,IusuallyskiprightoverthesethingswhenI‘mreadingabook,sooddsarethatnooneisevergoingtoreadwhatI‘mwritinghereanywayThatmakesitsafeformetomoveontoadmissionnumbertwo:I‘mnotaprogrammerNeverhavebeen,andIfear,neverwillbe,despitesomevalianteffortsonmypart(ifIdosaysomyself)I‘vedoneokaydespitenotknowingablessedthingaboutprogrammingI‘mnotlookingforsympathyoranything,butIamheretotellyouthatadaydoesn‘tgobywhenIdon‘tthink,―Damn,ifonlyIknewmyzbuffersfrommyBSPtrees!‖Ifyou‘realreadyaprogrammer,you‘vegotahugeleguponmewhenItriedtogetintotheelectronicgamebiz!(Andifyou‘renotaprogrammer,doasIsayandnotasIdolearntoprogramASAPMikehassomeadviceabouthowtodothatinthepagesthatfollowPayattention)Okay,sowiththosetwoconfessionsoutoftheway,Ifigurethere‘safairchanceanycredibilityImighthavehadisprettywellshotLuckilyforyoufolks,theguywhowrotethisbookhascredibilitytoburnMikeMcShaffry(or―MrMike‖ashe‘sknowntomosteveryoneinthegamebiz)istherealdealMikeisagenuinesurvivorHeisaguywhocantalkthetalkbecause,Lordknows,he‘swalkedthewalkenoughtimestoearnsometalkingtimeMike‘sexperienceofgamedevelopmentrunsthegamutinaprettyremarkablewayHewastherewhenteamswereadozenfolks,andhe‘sbeenaroundintheeraof,,andpersonteamsHe‘sdonethestartupthing,workedforthebiggestpublishersinthebusiness,workedon―traditional‖gamesanddecidedlyuntraditionaloneseverythingfromUltimatoBlackjack,singleplayer,multiplayer,onlineandoff,andjustabouteverythingelseyoucanimagineWhenitcomestoPCgames,hespeakswiththeauthorityofsomeonewho‘swornjustabouteveryhatit‘spossibletowearprogrammer,designer,projectleader,directorofdevelopment,studioheadAndI‘vehadtheprivilegeofwatchinghimlearnandgrowwitheachnewprojectandeachnewroleIwastherewhenMikegothisfirstgamejobIwasoneofthefolksatOriginwhointerviewedhimbackintheBoneAges,backinthethcentury,waybackin,whenheappliedforaprogrammingjobatOrigin(Seemslikeforever,doesn‘tit,MikeWhew!)Hestartedoutas―just‖aprogrammeronMartianDreams,agameIproducedforOrigin,butbytheendoftheproject,hewastheenginethatdrovethatgametothefinishlineThegamewouldn‘thavehappenedwithoutMikeHisdrive,dedication,loveofgames,knackforontheflydesign,naturalleadershipskills,abilitytocombinerightbrainandleftbrain(tosaynothingofhiswillingnesstoworkcrazyhours),droveallofustoworkthatmuchharderandensuredthatthegameendedupsomethingspecial(atleasttothoseofuswhoworkedonittogetheritsuredidn‘tsellmanycopies!)Ihonestlydon‘tevenrememberifIevergaveMikethetitle―LeadProgrammer‖officiallyonMartianDreams,buthesuredeserveditTheguywasamachine,workinglongerhoursthanmostpeopleI‘veworkedwith(andthat‘ssayingsomethinginthegamebusiness)HealsomanagedtodomoreandbetterworkinthosehoursthananyhumanbeingshouldbeallowedtoItjustain‘tfairtotherestofusmeremortalsWhenMikewason,therewasnotouchinghimAndhewasalmostalwaysonafterMartianDreams,Mikediditagainandagain,onUltimaVII,VIII,IXandabunchofothersScaryreallyInretrospect,allthosehoursandallthehardworkthatseemedsonecessary,backinthedayswhenwewereallyoungerandmorefoolishthanwearenow,wasprobablyanindicationthatMike,liketherestofus,didn‘thaveaclueaboutsoftwaredevelopmentorgamedesignormuchanythingelse(Okay,wehadaprettygoodhandleontheeffectsofsugarandcaffeineonthehumanbody,butthat‘saboutit)WehadtoworksolongandsohardjusttohaveachanceinhellofendingupwithsomethingworthwhileReadingthisbook,Icouldn‘thelpbutmarvelathowmuchMike‘slearnedovertheyearsandwonderhowmuchmoreMikeandtherestofuswouldhavegottendone,howmuchbetterourgamesmighthavebeen,ifwe‘dhadthebenefitofthekindofinformationinthepagesthatfollowTherejustwasn‘tanyonearoundbackthenwhoknewenoughaboutgames,programmingpractices,andsoftwaredevelopmentWeweremakingitupaswewentalongToday,thereareplentyofbooksouttherethatcanteachyouthetypingpartofprogrammingThereareevensomebooksthatgoabitfurtherandteachyouwhatmakesgamecodingdifferentfromcodingawordprocessingprogramorabillingsystemforyourlocalhealthcareproviders(or,asweusedtocall‘em,―doctors‖)Butevennow,therejustaren‘tmanybooksthatcombinehardcoregameprogrammingadvicewithequallyhardcoredevelopmentprocesses,debugging,andteambuildinginformationDevelopmentprocessTeambuildingWhocaresaboutallthatYoujustwanttowritecode,rightIfyou‘relikealotofprogrammersIknow,that‘sjustwhatyou‘rethinkingAnd,man,areyouwrongTheremighthavebeenatimewhencoderscouldjustclosetheirdoorsandtype,notcaringabouthowtheirworkfitintothebiggerpictureofagame‘sdevelopmentMaybethatwastrueyearsagoormore(probablynot,butmaybe)Well,itsureisn‘ttrueanymoreWithteamsgettingbiggerallthetime,withtimelinesstretchingandbudgetsbloating,processandteamissuesareeveryone‘sconcernnowadaysMikegetsthat,somethingthatbecomesclearintheveryfirstchapter,whenhesays,―Beingthebestdeveloperyoucanberequiresthatyouhaveintimateknowledgeabouttherealdemandsoftheindustry‖Amen,brotherThat,inanutshell,iswhatmakesthisbookspecialMostpeoplethinkenthusiasmandtalentareenoughtogetthemintothegamebusinessandtoensuresuccessoncetheylandthatallimportantfirstgig―Iplaygamesallthetime,‖theysay,―andI‘makickasscoder,sowhatmoreistheretoknowSignmeup!‖Well,I‘mheretotellyouthatthere‘splentymoretoknowandthat‘sprobablythesinglemostvaluablelessonthisbookhastoofferGamesareinsanelycomplex,andtheircreationinvolvesauniquecombinationofartandscience(somecallit―magic,‖andthey‘renotfarwrong)GamedevelopmentisdemandinginawaythatcanonlybeappreciatedafterastintinthetrenchesAtleast,Iusedtothinkthatwasthecase,butthat‘swhereMikecomesinHavingbeeninthetrenches,hecansaveyouthetroubleandpainandscarsandrelationshipbreakupsandcompanyfailuresthatalltoooftengoalongwithgamedevelopmentNomatterwhatyoumaythink,itisn‘tallglory,fame,wealth,andintensepersonalsatisfaction(thoughthereisabetterthanfairshareofthatlastitem)There‘satonofgreatstuffinMike‘sbookEvenifyou‘reanonprogrammer,you‘llgetsomethingoutoftheintroductorychaptersandthesectionabout―ProfessionalGameProduction‖AndIlovealltheinsiderbitsfoundinMike‘s―TalesfromthePixelMines‖Ofcourse,there‘splentyofnutsandboltsstuffforfolkswhoarealreadyprogrammersbutwanttoknowwhatmakesgameprogrammingsospecial(andbelieveme,itis)ButevenprogrammerswillbenefitfromtheothertonofstuffthatoftengetsshortshriftinthetypicalprogrammingbookallthatBigPicturestuffthatdoesn‘tinvolvecodesamplesThesearecriticaltobeingthemosteffectivedeveloperyoucanbe,whetheryou‘reaprogrammerornotThisisallstuffyoucan‘tgetjustanywhereYouhavetohavelivedthroughtheprocess(andthepain!)abunchoftimesOryouhavetofindamentorandspendyearssuckinghisorherbraindryOryoucanstopreadingthisforewordandstartreadingthisbookWhatareyouwaitingforWarrenSpectorAcknowledgmentsMomandGrandmaHawkerThanksforneversayingI‘dneveramounttoanything,playinggamesallthetimeyoubelievedinme,anditpaidoffDadandLynnThanksforshowingmeIshouldneverbeafraidofhardworkPhilHawkerThanksforgivingmeasenseofhumorIthinkIputittogoodusehereWarrenSpectorandRichardGarriottThanksforbelievingageekycollegekidcouldhelpmakethegamesIlovedtoplayThirdEditionGuestAuthorsandExtraHelpJamesClarendon,JeffLake,QuocTran,David(Rez)Graham,ChrisShelleyThirdEditionBetaTestersSaschaFriedmann,VincentMagiyaThirdEditionPublisherandEditorThankstoHeatherHurleyforpickingupthebookforathirdeditionThankstomyeditorMartaJustakformakingmelooklikeawriterContributorAcknowledgmentsTheCoverArtistThecoverwascreatedbymyfriendandcoworkerKrisTaylorHeiscurrentlytheArtDirectorofRedFlyStudioinAustin,TexasJamesClarendon,AuthorofChapter,―ScriptingWithLua‖I’dliketothankMrMikeforthisopportunityaswellasallthegoodtimes(andbad!)we’vesharedinthiscrazyindustryAspecialthankstoEdith,whohaskeptmesaneduringmanyofthesetimesJeffLake,CoauthorofChapter,―CollisionandSimplePhysics‖ToLarryLake:It’snoEOR,butit’scloseDavid―Rez‖Graham,AuthorofChapter,―AnIntroductiontoGameAI‖StephLaberisforherconstantencouragementMyfatherforgivingmemyfirstprogrammingbookMymotherfornevertellingmetostopwastingmylifeplayinggamesMygrandfatherforhissagewisdomAndlastbutnotleast,mygoodfriendMikeMcShaffryforgivingmethisopportunityQuocTran,AuthorofChapter,―ASimpleGameEditorinC#‖DrBruceNaylorforinspiringmetobecomeagamedeveloperPeterFreeseforgivingmemyfirstbreakintheindustryasaprogrammerMylovelywife,whosepatienceandsupporthelpedmemaintainmytenuousgriponsanityAbouttheAuthorMikeMcShaffry,aka―MrMike,‖startedprogramminggamesassoonashecouldtapakeyboardinfact,hesomehowskippedseventhgrademathentirelyinfavorofwritinggamesinBASIConanancientCommodorePetInhissinglemindedpursuitofprogrammingknowledge,hesignedupforanextendedstayattheUniversityofHoustonTohissurpriseofhimselfandtheDeanofMathematics,heactuallygraduatedfiveandonehalfyearslaterShortlyaftergraduation,heenteredthebootcampofthecomputergameindustry:OriginSystemsHeworkedforWarrenSpectorandRichardGarriott,aka―LordBritish,‖onMartianDreams,UltimaVII:TheBlackGate,UltimaVIII:Pagan,UltimaIX:Ascension,andUltimaOnlineExactlysevenyearsfromthedayhewashired,Mikearrangedhisescapeandinformedhisfirstcompany,TornadoAlleyTornadoAlleywasagaragestartupwhosegoalwastocreateNoGrownupsAllowed,amassivelymultiplayerworldforchildrensomethingthatwassuretolandMikeandanyoneelseatTornadoAlleyfrontandcenterofaCongressionalhearingWhileNoGrownupsneverleftthetarmac,akid‘sactivityprogramcalledMagnadoodlebyMattelMediadid,andinrecorddevelopmenttimeTheentrepreneurialbug,aravenousandinsatiablebeast,finallydevouredenoughofMike‘sremainingEAstocktomotivatehimtotakeasteadygigatGlassEyeEntertainment,workingforhisfriendMontyKerr,whereheproducedMicrosoftCasinoTenshortmonthslater,MontyaskedMikeandhisnewlyassembledteamtostarttheirowncompanycalledCompulsiveDevelopment,whichworkedexclusivelywithMicrosoftoncasualcasinoandcardgamesMikeservedastheprimarycoffeebrewmasterandheadofstudio,andtogetherwiththerestoftheCompulsivefolks,greatpeopleinall,producedthreemorecasualtitlesforMicrosoftuntilAugustCompulsivewasacquiredbyGlassEyeEntertainmenttocontinueworkonGlassEye‘sgrowingonlinecasualgamesbusinessMikewashungryforAAAconsolework,andinhegotwhathewanted:IonStorm‘sThief:DeadlyShadowsteamcalledMikeintocreatetheirthirdpersoncameratechnologyandworkonfinetuningcharactermovementatthethhourWhatstartedasatwoweekcontractturnedintoalmostayearoflaborworkingsidebysidewithprogrammerswhousedtocallMike―boss‖Whileitwasgreattobe―oneoftheboys‖again,itcouldn‘tlastforeverMikewasrecruitedtostartanAustinstudioforMarylandbasedBreakawayGamesBreakawayAustin‘sfocuswasAAAconsoledevelopmentandhighendsimulationsfortheUSmilitaryandDoDcontractorsMikeandthreeoftheBreakAwayAustinteamactuallyvisitedtheUSSHarrySTruman,oneoftheUSNavy‘sCVNclassNuclearAircraftCarriersTheyflewout,landedonthecarrier,spentfourdaysandnightswiththeofficersandcrew,andgotlaunchedtogobackhomeAfterwards,theycreatedBlue,atrainingsimulatorthatmimicstheinsaneenvironmentofthedeckofthecarrier,jetsandeverythingAfterBreakAwayAustin,MikefoundedaconsultingcompanycalledMrMikeHefiguredthatnearlyyearsinthegamingindustrywasenoughtofirmlyestablishthatasagoodidentityforthecompanyFornearlytwoyears,hehelpedsmallgamecompanieschoosetheirgametechnology,firmuptheirproductionpractices,andpitchgameideastoindustrypublisherslikeMicrosoft,EA,THQ,andothersOneofhisclients,RedFlyStudio,madehimanofferhecouldn‘trefuse,andhejumpedbackintoafulltimegigMiketookthepositionofExecutiveProducerandhelpedshipMushroomMen:TheSporeWarsHeiscurrentlyworkingonGhostbustersfortheWiiandtwounannouncedtitlesHestillmakescoffeeandtriestogivegoodadvicetotheprogrammers,artists,designers,audioguys,andproducersworkingforhimHestillwritescodewhenhecanmostrecentlyworkingwithhisfriendQuoccreatingsomeniftypluginsforMicrosoftProject,calledMrMike’sAddinsIfMike‘sfingersaren‘ttappingawayatakeyboard,he‘sprobablyeither―downhilling‖onhismountainbikeorenjoyinggoodtimeswithhisfriendsinAustin,TexasIntroductionWhoIsMrMikeandWhyShouldICareIhadbeenplayingtheUltimaseriesofgamesbyRichardGarriottsinceIwasinhighschool,andIwasa

用户评价(0)

关闭

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

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

提示

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

评分:

/49

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部

举报
资料