台球游戏的设计和实现毕业论文

 2021-04-12 04:04

摘 要

从当下时代进步的速度还有社会经济发展的两个角度上来看,人们的生活水平不断提高是已经逐渐变得普遍,生活质量的范围要求已经变得不仅仅是对物质的要求了,逐渐转向为精神追求。随着计算机的发展,一个新的娱乐模式诞生即电脑游戏。它是凭借独特的魅力来吸引多个玩家的。适当的游戏不仅能够使人们放松心情,还能锻炼人们的听、读、看等协调能力,游戏产业的发展不仅给国家带来税收,也促进了我国文化产业的相当程度的发展。

本设计的主要目的是通过采用OpenGL设计的基于OpenGL的台球游戏。设计的主要工作通过分析设计所要实现的功能,进而通过OpenGL设计具体内容。Open GL可以跨编程语言、跨平台操作。它能够制作3D效果的图形,在制作场景时,采用Open GL是很好的选择。在我们进行不可或缺的场景的设计时,它能实现快速流畅的图片以及图形的优化。同时,在本设计中,采用的是Visual C 开发语言,因为Visual C 能很好的结合OpenGL进行本设计的开发。

本文基于OpenGL图形接口库,使用Visual C 开发语言,在 Visual Studio2010开发平台上完成了3D台球游戏的界面的设计,主要包括:基础框架、碰撞检测以及模型控制三大功能模块。该游戏的一个重要特点是利用了OpenGL和Visual C 制作,通过模型建立、光源设置、材质设置、纹理处理、碰撞检测、运动模拟等将真实世界中的台球游戏在计算机中再现。游戏运行流畅,整体画面美观大方,操作便捷。

关键词:OpenGL;Visual C ;Visual Studio2010;3D台球。

Design and Implementation of Billiard Games

ABSTRACT

In terms of the speed of progress in the present era and socio-economic development, the continuous improvement of people's living standards has gradually become common, and the range of quality of life has become more than material requirements, and gradually turned to spiritual pursuit. With the development of computer, a new mode of entertainment is born: electronic games. It attracts multiple players with its unique charm. Appropriate games can not only make people relax, but also exercise people's listening, reading, reading and other coordination ability. While the development of the game industry brings taxes to the country, it also promotes the development of China's cultural industry to a considerable extent.

The main purpose of this design is to adopt Open GL design based on opengl billiards game. The main work of design is to analyze the functions to be achieved by design, and then design specific content through OpenGL. Open GL can operate across programming languages and platforms. It is capable of producing 3D graphics, and an Open GL is a good choice when making scenes. When we design indispensable scenes, it can achieve fast and smooth pictures and graphics optimization. At the same time, in this design, the use of Visual C development language, because Visual C can be a good combination of Open GL for the design of the development.

Based on OpenGL graphic interface library and Visual C development language, this paper completed the interface design of 3D billiards game on Visual Studio2010 development platform, mainly including three functional modules: basic framework, collision detection and model control. An important feature of the game is the use of OpenGL and Visual C production, through the model building, light source Settings, material Settings, texture processing, collision detection, motion simulation and other real world billiards game in the computer reproduction. Smooth operation of the game, the overall picture is beautiful, easy to operate.

Key words:OpenGL; Visual c ; Visual Studio2010; 3 d billiards

目 录

摘要……………………………………………………………………………………1

ABSTRACT…………………………………………………………………………………………2

第一章引言………………………………………………………………………5 1.1研究的目的及意义……………………………………………………………………………5

1.2游戏行业发展现状………………………………………………………………………………5

1.3开发环境及相关技术………………………………………………………………………………6

1.3.1 C 开发语言………………………………………………………………………………………6

1.3.2 VLSUAL STUDIO 2010开发工具…………………………………………………………………7

1.4 OpenGL…………………………………………………………………………………………………8

第二章 游戏设计…………………………………………………………………9

2.1 游戏设计原则……………………………………………………………………………………9

2.2 游戏的组成………………………………………………………………………………………9

2.3游戏的结构………………………………………………………………………………………10

2.4本游戏设计………………………………………………………………………………………11 第三章游戏实现……………………………………………………………………………………13

3.1场景绘制………………………………………………………………………………………… 13 3.1.1台球桌面…………………………………………………………………………………… 13 3.1.2台球球体……………………………………………………………………………………15

3.1.3基本的UI界面 …………………………………………………………………………18

3.2 碰撞检测…………………………………………………………………………………19

第四章游戏的测试与运行结果…………………………………………………………………20

4.1游戏初始化界面…………………………………………………………………………………21

4.2玩家信息…………………………………………………………………………………………21

4.3球杆的力度控制…………………………………………………………………………………22

4.4玩家击球时的各种视角…………………………………………………………… …… ……………23

4.5游戏击球次数规则详解……………………………… … …………… ………… …………… …… 24

4.6游戏获胜条件规则详解…………… ……… …………………………………………………………28

4.7游戏结束界面……………………………………………………………… ………………… ………30

4.8测试总结………………………………………………………………… …………………… ………31

第五章游戏的创新与特色…………………………………………………………………32

结论……………………………………………………………………………………33

谢辞……………………………………………………………………………………34

参考文献………………………………………………………………………………35

附录………………………………………………………………………………………36

您需要先支付 80元 才能查看全部内容!立即支付

课题毕业论文、开题报告、任务书、外文翻译、程序设计、图纸设计等资料可联系客服协助查找,优先添加企业微信。