基于Java的连连看游戏设计与实现
摘 要
随着社会节奏的加快,平常工作的竞争强度也加大,生活的压力也跟着加重,所以休息时或下班后大家都需要个休闲的娱乐工具,来放松自己,缓解自己的压力,消除紧张的疲劳状态,Java连连看游戏制作的目的就是为了满足了人们休闲娱乐的需要,本游戏通过设置不同的关卡难度符合各个游戏水平的玩家,使每个人都有自己的挑战,同时连连看游戏的不同难度也可以满足各种游戏水平的人群,也使连连看游戏长久的保持了新鲜感。
本文首先介绍了连连看游戏的发展和基本规则,进而分析了基于Java的连连看游戏设计与实现的优点和开发的可行性,然后论述了连连看游戏的设计目的和解决的主要问题,并且详细论述了游戏的需求分析、概要设计、详细设计及游戏的具体实现和单元测试。本连连看游戏除实现了基本的图片相消功能之后,还添加了额外的功能,如炸弹道具、提示道具、刷新道具、倒计时等,最后,本文对该游戏进行了客观的总结。
这个游戏使用了java语言,通过GUI在MyEclipse中编写。实现的后台功能有图片相消、道具功能、界面完善、添加音效等。
关键词:连连看,游戏,JAVA
Abstract
As the pace of the society is getting faster and faster, not only normal work become more competitive , but the stress of our life is getting greater. In this moment we do need a entertainment tool to relax ourself or relieve our stress or eliminate our fatigue in our leisure time after work. And java lianliankan game is just a production to meet all the needs for people, the game set different levels to suit different level of players,so every players can challenge themselves, at the same time the game can meet all kinds of groups of players by it’s different level of difficulty. It also can help the game to keep being attracted for a long time .
This paper will introduces the development and the basic rules of this lianlian game in the first, and then will analyzes the advantages of using Java to develop lianliankan game and the feasibility of the development, final will discusses the design purpose and solve the main problems, and the game will be described by detail analysis, according to general design, detailed design and the implementation of the game and unit test. This game will not only supply the faction of matching picture and eliminate it but also some extra functions such as bomb props, refresh the props, props, pointing out the countdown, etc., in the last of the paper there will be a objective summarize about this game.
The game uses the Java language, via writing GUI in MyEclipse to implement backstage functions such as eliminate pictures ,props, improve the interface, add sound effects, etc.
Key words:Lianliankan,Game,Java
目 录
1 引言1
1.1 连连看游戏发展1
1.1.1 桌面连连看游戏发展1
1.1.2 在线连连看游戏发展1
1.1.3 社交连连看游戏发展1
1.2 连连看游戏介绍1
1.2.1 连连看游戏基本规则2
1.2.2 连连看游戏关卡设置2
1.3 连连看游戏设计目的2
1.4 连连看游戏解决的主要问题2
1.5 连连看游戏技术的简要说明3
1.6 Java语言的主要特性5
1.6.1简单性5
1.6.2跨平台5
1.6.3面向对象5
1.6.4多线程5
1.6.5动态性5
1.6.6健壮性6
1.7 连连看游戏的关键技术6
2 连连看游戏需求分析7
2.1 需求分析7
2.2 可行性分析7
2.3 功能需求分析7
2.4 性能需求分析8
2.4.1 硬件环境8
2.4.2 软件环境8
2.4.3 环境变量8
3 连连看游戏概要设计9
3.1 功能设计分析9
3.2 功能设计方法10
3.3 连连看游戏流程图11
4 连连看游戏详细设计12
4.1 游戏中地图布局12
4.2 游戏中地图算法设计13
4.3 游戏中界面显示17
4.3.1 游戏成功界面17
4.3.2 游戏失败界面18
4.4 游戏中声音模块19
5 单元测试20
5.1 文件目录20
5.2 游戏界面各功能展示21
5.2.1 游戏帮助界面21
5.2.2 游戏道具界面21
5.2.3 游戏提示过场界面22
6 毕业设计总结24
参 考 文 献25
致 谢26