大型网络游戏系统---毕业论文.doc
文本预览下载声明
本 科 毕 业 论 文
large-scale network game system
姓 名:
学 号:
学 院:软件学院
系:软件工程
专 业:软件工程
年 级:
指导教师:
年 月
摘要
通过完成对一款大型网络游戏进行系统架构设计、流程与时序设计、类结构与接口交互设计、数据库设计以及实现了相关代码,学习了编写系统详细策划书的方法,以及了解了计算机图形学的相关知识。
本文讨论了国内网络游戏的发展历程,调查了当今网络游戏市场在中国互联网市场中所占有的比例。介绍了该大型网络游戏游戏系统的历史背景以及用户的游戏体验。
本文的主要内容包括:(1).通过研究OGRE图像渲染引擎的底层实现流程和使用方法,并在其的基础上封装了一套集成游戏场景中各个功能模块的系统架构。这套架构对场景中每种功能进行了建模,抽象出相关功能模块;然后通过策略模式记录了各个模块的渲染流程和关键帧的事件,最终由一个主框架代理所有子模块的渲染。因此可以轻松地加入和删除每个渲染系统,能够轻易地完成各个三维场景、效果的加载、切换和卸载,进而达到了设计目的;(2).本文解决了游戏中从客户端注册向导和客户端场景同服务器的通信问题,独立设计了相应的BS网络架构和套接字连接池概念,为该游戏以后的设计和稳定运行奠定了基础;(3). 对3D图形图像学、OGRE的底层实现方式、灰度图的实现原理碰撞检测原理以及A*寻路算法都相应的介绍。特别是对OGRE渲染部分的底层源码进行了剖析,并按仿照相应的流程进行了模仿,揭开了一些OGRE神秘的面纱。
关键字:网络游戏;OGRE;图形学;服务器;BS架构;套接字连接池 Abstract
In order to finish A large-scale network game system, I designed sequences diagram, class structure and interface and database. At last, I learnt how to write the detailed planning book, and get the knowledge of computer graphics .
The paper describes the development process and the prospects of online games in China. And give some ideas of the history and the players` experience for this game. Now Let discuss the main contents of this article:
Firstly, I create an open main framework for the game, through the study of the source code from the Objected-oriented Graphics Engine. The framework is based on OGRE render system. In order to make sure that all of the subsystems could be simply inserted in the frame, I used Strategy Pattern, Proxy Pattern to design the system, and separated of all objects which you can see or not ,then designed a class for each. Abstract out of the various categories of common ground as a parent class, then get a clear class diagram. After that, when I need to switch scene, I could delete last scene directly, and apply for a new scene, and throw it to the main frame.
Secondly, this article solved the problem of the data exchange between the register wizard and the server, and between client scen
显示全部