欢迎来到天天文库
浏览记录
ID:48013853
大小:2.51 MB
页数:323页
时间:2019-07-21
《SFMLGameDevelopment-Unknown.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、TableofContentsSFMLGameDevelopmentCreditsForewordAbouttheAuthorsAbouttheReviewerswww.PacktPub.comSupportfiles,eBooks,discountoffersandmoreWhySubscribe?FreeAccessforPacktaccountholdersPrefaceWhatthisbookcoversWhatyouneedforthisbookWhothisbookisforConvent
2、ionsReaderfeedbackCustomersupportDownloadingtheexamplecodeErrataPiracyQuestions1.MakingaGameTickIntroducingSFMLDownloadingandinstallationAminimalexampleAfewnotesonC++DevelopingthefirstgameTheGameclassGameloopsandframesInputoverseveralframesVectoralgebra
3、Frame-independentmovementFixedtimestepsOthertechniquesrelatedtoframeratesDisplayingspritesonthescreenFilepathsandworkingdirectoriesReal-timerenderingAdaptingthecodeSummary2.KeepingTrackofYourTextures–ResourceManagementDefiningresourcesResourcesinSFMLTex
4、turesImagesFontsShadersSoundbuffersMusicAtypicalusecaseGraphicsAudioAcquiring,releasing,andaccessingresourcesAnautomatedapproachFindinganappropriatecontainerLoadingfromfilesAccessingthetexturesErrorhandlingBooleanreturnvaluesThrowingexceptionsAssertions
5、GeneralizingtheapproachCompatibilitywithsf::MusicAspecialcase–sf::ShaderSummary3.ForgeoftheGods–ShapingOurWorldEntitiesAircraftAlternativeentitydesignsRenderingthesceneRelativecoordinatesSFMLandtransformsScenegraphsScenenodesNodeinsertionandremovalMakin
6、gscenenodesdrawableDrawingentitiesConnectingentitieswithresourcesAligningtheoriginScenelayersUpdatingthesceneOnestepback–absolutetransformsTheviewViewportViewoptimizationsResolutionandaspectratioViewscrollingZoomandrotationLandscaperenderingSpriteNodeLa
7、ndscapetextureTexturerepeatingComposingourworldWorldinitializationLoadingthetexturesBuildingthesceneUpdateanddrawIntegratingtheGameclassTherun()methodSummary4.CommandandControl–InputHandlingPollingeventsWindoweventsJoystickeventsKeyboardeventsMouseevent
8、sGettingtheinputstateinrealtimeEventsandreal-timeinput–whentousewhichDeltamovementfromthemousePlayingnicewithyourapplicationneighborhoodAcommand-basedcommunicationsystemIntroducingcommandsReceivercategoriesCommandexecutionCommand
此文档下载收益归作者所有
点击更多查看相关文章~~