您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 广告经营 > 基于Unity3D的多人网络斗地主游戏的设计与实现
基于Unity3D多平台网络斗地主的设计与实现学院名称:计算机工程学院专业:计算机科学与技术班级:10工程W学号:10141303姓名:丁小未指导教师姓名:朱明放指导教师职称:副教授二〇一四年五月本科毕业设计(论文)江苏理工学院毕业设计说明书(论文)1基于Unity3D的多平台网络斗地主的设计与实现摘要:斗地主是一款非常经典的游戏,可以说是家喻户晓,玩法也比较的简单,娱乐性也比较强,老少皆宜。随着互联网技术的飞速发展,斗地主呈现的形式也变得多样性,由传统的纸牌游戏衍生为移动端单机游戏,然后到多人多平台的即时在线联网游戏。形式的变化能够让人足不出户也能感受到和伙伴们一起玩游戏的乐趣。本设计的游戏规则是针对一副牌为准,本文论述了网络斗地主游戏的基本算法设计以及大体的设计框架和思路,并且以图文,部分核心代码解释的形式展示出来。本设计采用了Unity3D作为开发引擎,结合Visualstudio2010开发工具,通过基本的socket通讯和一些算法,最终实现了多平台的多人网络斗地主的设计。本文基于Unity3D的游戏开发设计过程中,采用了MVC的设计模式,这也符合Unity3D工作模式;采用C#脚本语言也更符合Unity3D游戏设计面向对象的设计理念,游戏设计就是将面向对象这一特性发挥到极致;采用MONO开源跨平台框架能够大大节约游戏的开发效率以及开发成本,最后通过实际的完成效果来验证了基于Unity3D的多平台网络斗地主游戏设计具有高效性,高品质和低门槛性的特点。关键词:Unity3D,斗地主,手机游戏,游戏引擎,socket,网络通讯,MVC,MONO江苏理工学院毕业设计说明书(论文)2Designandimplementationofmulti-platformnetworkLandlordsBasedUnity3DAbstract:Landlordsisaclassicgame,whichcanbesaidtobeahouseholdname.Therulesarerelativelysimple,andkindoftheentertainmentisrelativelystrong.Asaresult,thegamehasgainpopularityamongboththeyoungandtheold.WiththerapiddevelopmentofInternettechnology,theformofthegameisofgreatdiversity.Thegamederivedfromthetraditionalcardgame,thenturnedintothestand-alonemobilephonegame,andnowhasbecomeamulti-platforminstantonlinemultiplayernetworkedgame.Thechangesinthegameformmakepeoplewhostayathomeenjoyingthefunofplayingthegametogether.Thedesignoftherulesisaccordingtoadeckofcards.ThearticlediscussesthebasicnetworkLandlordsalgorithmdesignandthegeneralframeworkandideasofthegame.Thegameinterpretsitselfsuccessfullybythegraphicformandthepartofthecorecode.ThisdesignusestheUnity3Dasadevelopmentengine.Besides,itcombinedwithVisualstudio2010developmenttools.Ultimatelywefinishthedesignofamulti-platformmultiplayeronlineLandlordsbysomealgorithmsandthebasicsocketcommunication.ThearticleisbasedonthedesignprocessofUnity3Dgamedevelopment.TheMVCdesignpatternisconsistentwithUnity3Dmode,andC#scriptinglanguageisgoodforthedesignobject-orienteddesignofUnity3Dgame.Object-orientedgamedesignissupposedtomakethebestofthefeature.TheMONOopensourceframeworkcangreatlyreducetheefficiencyofgamedevelopmentaswellasdevelopmentcosts.Finallywevalidatethehighefficiency,high-qualityandlow-thresholdcharacteristicsofthemulti-platformnetworkgamewhichbasedonLandlordsUnity3Dbyachievingtheactualresults.Keywords:Unity3D,Landlords,mobilegames,gameengine,socket,networkcommunications,MVC,MONO江苏理工学院毕业设计说明书(论文)I目录前言....................................................................................................................................1第1章概述....................................................................................................................21.1系统开发背景.............................................................................................................21.2设计的目的...............................................................................................................31.3设计的意义...............................................................................................................3第2章开发环境及相关技术介绍................................................................................42.1开发环境介绍...........................................................................................................42.1.1Unity3D简介.........................................................................................42.1.2VisualStdio2010和MonoDevelop.......................................................52.1.3Xcode简介............................................................................................52.2C#语言和Javascript脚本........................................................................................52.2.1C#语言...................................................................................................52.2.2Javascript语言.......................................................................................62.3IOCP框架简介.........................................................................................................62.3.1IOCP内部工作队列图..........................................................................72.3.2程序实现IOCP模型的基本步骤.........................................................72.3.3使用IOCP模型和不使用IOCP模型通讯的对比..............................82.4本章小结.................................................................................................................10第3章系统需求分析..................................................................................................103.1用户功能需求分析.................................................................................................103.2系统性能要求.........................................................................................................103.3可行性分析.............................................................................................................10第4章总体方案设计..................................................................................................114.1纸牌设计.................................................................................................................114.1.1牌型设计...........................................................
本文标题:基于Unity3D的多人网络斗地主游戏的设计与实现
链接地址:https://www.777doc.com/doc-5249620 .html