Procedural Content Generation for C++ Game Development
Proceduralgenerationisagrowingtrendingamedevelopment.Itallowsdeveloperstocreategamesthatarebiggerandmoredynamic,givingthegamesahigherlevelofreplayability.Proceduralgenerationisn’tjustonetechnique,it’sacollectionoftechniquesandapproachesthatareusedtogethertocreatedynamicsystemsandobjects.C++istheindustry-standardprogramminglanguagetowritecomputergames.It’sattheheartofmostengines,andisincrediblypowerful.SFMLisaneasy-to-use,cross-platform,andopen-sourcemultimedialibrary.Accesstocomputerhardwareisbrokenintosuccinctmodules,makingitagreatchoiceifyouwanttodevelopcross-platformgameswithease.UsingC++andSFMLtechnologies,thisbookwillguideyouthroughthetechniquesandapproachesusedtogeneratecontentprocedurallywithingamedevelopment.Throughoutthecourseofthisbook,we’lllookatexamplesofthesetechnologies,startingwithsettinguparoguelikeprojectusingtheC++template.We’llthenmoveontousingRNGwithC++datatypesandrandomlyscatteringobjectswithinagamemap.Wewillcreatesimpleconsoleexamplestoimplementinarealgamebycreatinguniqueandrandomisedgameitems,dynamicsprites,andeffects,andprocedurallygeneratinggameevents.Thenwewillwalkyouthroughgeneratingrandomgamemaps.Attheend,wewillhavearetrospectivelookattheproject.Bytheendofthebook,notonlywillyouhaveasolidunderstandingofproceduralgeneration,butyou’llalsohaveaworkingroguelikegamethatyouwillhaveextendedusingtheexamplesprovided.
·6萬字