资源描述:
《基于java的连连看游戏设计与实现》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、摘要游戏产业发展至今已有三十多年的历史,作为现代电脑电子技术的产物,它正以其独特的魅力在全世界的娱乐领域占领主要地位,而游戏的种类也是多种多样,要想开发一款有独特魅力的游戏占领一席之地必须要明确一点就是游戏本身要具有强大的吸引力,就是要让玩家在玩游戏的同时,既能打发时间,又能在繁忙的工作之余得到最大程度的放松,通过游戏结实更多不同地域的朋友,从而满足人们对休闲的需要。而且游戏产业促进高科技不断升级,作为经济增长的一大支点,俨然即成为经济的“第四产业”。随着科技的发展,硬件水平的提高,游戏新技术层出不穷,
2、更新换代速度之快,经典游戏比比皆是,连连看,就是经典之一。提到连连看小游戏,大家再熟悉不过了,就是指在一个区域内分布着很多不同的图片,这些图片两两一样,但是位置随机,通过点击两张相同的图片,在某种算法路径的要求下达到消除的效果。在游戏设计的过程中,可以考虑运用自己掌握学到的程序知识去实现游戏的效果,并为自己量身打造一款属于自己的连连看,这是一件很有意思的事情。本游戏采用Java语言开发,以Eclipse为开发平台。游戏主界面基于GUI的开发,使得游戏界面更加简单美观人性化,并调用的一些函数,完成事件的的
3、触发功能,通过定义动态的二维数组,根据一定的算法实现规定的路径判断。关键词:连连看、Java、数组、路径判断、GUIIVAbstractIVAbstractAbstractGameindustryhasbeenthirtyyearsofhistory,asaproductofmoderncomputerelectronicstechnology,itisthemainoccupationofitsuniquecharmpositionworldwideintheentertainmentfield,an
4、dalsoavarietyoftypesofgames,inordertodevelopthegamehasauniquecharmtooccupyaplacemustbeclearthatthegameitselftobeapowerfulattraction,istolettheplayersplaythegameatthesametime,bothtopassthetime,butalsointhebusyworktogetthegreatestdegreeofrelaxed,moresolidt
5、hroughthegamedifferentregionsoffriends,tomeetpeople'sneedforleisure.Andthegameindustrytopromotehigh-techescalatingaseconomicgrowthisamajorfulcrum,theeconomyseemstobecomethe"fourthindustry."Withthedevelopmentoftechnologytoimprovethehardwarelevel,thegameis
6、newtechnologyemerging,fastreplacementrate,theclassicgamesabound,Snake,isoneoftheclassic.MentionedLianliankangame,alltoofamiliar,andreferstothedistributioninaregionwithmanydifferentpictures,thesepicturesbetweentwodifferent,butrandomlocation,byclickingontw
7、oidenticalpicturesinthepathofanalgorithmrequesttoeliminatetheeffect.Inthegamedesignprocess,youcanconsiderusingtheknowledgelearnedtomastertheprogramtoachievetheeffectofthegameandfortheirowntailoraSnake,thisisaveryinterestingthing.ThegameusestheJavalanguag
8、edevelopment,Eclipseasadevelopmentplatform.ThemaingameinterfacedevelopmentGUI-basedinterfacemakesthegamemoresimpleandbeautifulhumanity,andsomeofthefunctioncall,thecompletionofthetriggeringevent,definedbyatwo-dimensionalarr