基于OpenGL小游戏开发及实践

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

2015 届毕业设计论文

基于OpenGL的小型游戏开发及实践

院、部:计算机与信息科学学院

学生姓名:**

指导教师:方小勇职称副教授

专业:计算机科学与技术

班级:1103

完成时间:2015-6

摘要

信息时代的到来使得电脑越来越普及,人们对电脑游戏的需求也越来越高。游戏的界面美观性,可操作性无疑是人们考虑的关键因素。OpenGL是一种主流的图形处理工具,基于OpenGL开发的小游戏有更好的观赏性,本次论文论述的是基于OpenGL开发的五子棋小游戏。

五子棋,起源于中国古代传统的黑白棋游戏,简单易懂又不缺乏趣味性。其中的对弈较量,不仅增强人的思维能力,开发人的智力,而且简单的游戏规则中蕴含着深奥的棋技,是修身养性,陶冶情操的一款经典游戏。

本次论文是基于OpenGL和C++语言在Visual Studio 2008环境下编程,设计了一款人机对战、人人对战功能的五子棋游戏。采用极大极小搜索算法及alpha-beta剪枝算法,采取优先级策略来判别棋局,实现了单机游戏的人工智能。运用了OpenGL的alpha混合及深度测试等一系列的特性,将计算机图形学与算法相结合,旨在设计出一款界面客观性强,游戏可操作性强的一款小游戏软件。

通过学习,基本掌握OpenGL函数库的使用,能够制作简单的平台界面,实现人机交互功能,探讨和研究了博弈论的相关知识,学会将算法与日常事务的结合,运用算法去解决问题。由于时间原因,界面的美观性有待改进,游戏的多样性以及难易程度的合理性并不是做的很好,希望在今后的学习中更加完善不足的功能。

关键词:OpenGL;五子棋;小游戏;博弈论

ABSTRACT

The arrival of information age makes computers more and more widespread, people are also more and more high demand for computer games. The game interface aesthetics, operability is undoubtedly the key factors what people consider. OpenGL is a mainstream of graphics processing tools, based on OpenGL, little game have a better view and admire a gender, this thesis is based on OpenGL developed gobang game.

Gobang, originated in the ancient Chinese traditional black white game, easy to understand and not a lack of interest. The game, not only enhance the person's thinking ability, developers of intelligence, and the simple rules of the game contains profound Chess skills, cultivate one's morality raises a gender, edify sentiment of a classic game.

This paper is based on OpenGL and C++ language programming in Visual Studio 2008 environment, designed a function of the man-machine against and everyone against gobang game. The minimax search algorithm and alpha - beta pruning algorithm, discriminant chess, take priority strategy to realize the single-player game AI. Using a series of features about the alpha blend of OpenGL and depth test and so on, combining computer graphics and algorithm, aims to design an interface strong objectivity, games strong operability of a small game software.

Through learning that the basic to master the use of OpenGL library function, I can make a simple platform interface, realize the human-computer interaction function, discusses and studies the related theory knowledge, learn to algorithm combined with the daily affairs, using the algorithm to solve the problems. Due to time reasons, interface aesthetics needs to be improved, the diversity of the game, and the rationality of ease is not doing very well, the lack of hope in the future to learn to be more perfect function.

Key words : OpenGL; Gobang; game; game theory

相关文档
最新文档