基于Android的拼图游戏的设计与实现

 2022-10-26 11:10

论文总字数:23770字

摘 要

移动多媒体的时代悄然而至,智能手机在我们的日常生活中扮演着越来越重要的角色,同时丰富了我们的生活。研究表明,在手机的众多增值服务中,游戏、即时通讯的使用者比例占到了57.1%,位居首位。随着移动通讯技术的飞速发展,智能手机也越来越普及,更加生动有趣的手机游戏层出不穷,用户族群也显现出了多元化。

当代人对于手机游戏的需求越来越大,各种类型的手机游戏层出不穷。不同年龄段用户都有着各自的游戏风格,但是有一种类型的游戏老少皆宜,深受大众喜爱,那便是益智类游戏。拼图游戏作为益智类游戏的一种,有着235年的历史,是一款广为人知、发展成熟的游戏,本论文旨在设计一款基于Android的拼图游戏,将传统拼图游戏与当下智能手机相结合,赋予拼图便捷性、智能性等新的特性。

本论文从当下手机游戏的市场出发,结合Android平台的发展现状与前景,按照拼图游戏开发过程中的具体需求,学习和研究基于Android平台的开发方法和技术,进一步确定开发目标及项目规划。本项目的开发流程包括:Android开发环境配置、拼图游戏的需求分析、游戏功能设计、代码实现、最终性能测试等。

本系统使用eclipse、Android SDK作为开发环境,Java作为开发语言,使用eclipse内置模拟器与真机进行测试。系统实现后顺利通过测试,可以实现所设计的功能,游戏运行流畅,是一款成功的手机游戏。

关键字: Android;游戏;拼图游戏;益智游戏

Design and implementation of puzzle game based on Android

abstract

With the advent of mobile multimedia era, smart phones play an increasingly important role in our daily life and enrich our lives. Research shows that among the many value-added services of mobile phones, game and instant messaging account for 57.1% of users, ranking first. With the rapid development of mobile communication technology, smart phones are becoming more and more popular, more vivid and interesting mobile games emerge in endlessly, and user groups also show diversity.

Nowadays, the demand for mobile games is increasing, and various types of mobile games emerge in an endless stream. Users of different age groups have their own game styles, but there is one type of game that is popular among people, young and old. That is puzzle games. As a puzzle game, jigsaw puzzle has a history of 235 years. It is a mature game with a good market. The jigsaw puzzle is not only used for education and entertainment, but also for commercial and political propaganda.The purpose of this paper is to design a puzzle game based on Android, which combines puzzle with Intelligent mobile phone, and gives puzzle convenience and intelligence.

In this paper, starting from the current mobile game market, combined with the development status and prospects of Android platform, according to the specific needs of jigsaw puzzle game development process, we study and study the development methods and technologies based on Android platform, and further determine the development objectives and project planning. The development process of this project includes: Android development environment configuration, jigsaw puzzle needs analysis, game function design, code implementation, final performance testing, etc.

The system uses eclipse, Android SDK as the development environment, Java as the development language, and eclipse built-in simulator and real machine for testing.The system passes the test smoothly after implementation, and can realize the designed function. The game runs smoothly. It is a successful mobile game.

Key words: Android; games; Jigsaw puzzle;puzzle games

目录

摘要 I

第一章 引言 1

1.1 研究背景与意义 1

1.2 国内外发展现状 1

1.3 研究目标和主要内容 2

1.4 论文结构安排 2

1.5 本章小结 2

第二章 Android系统概况 3

2.1 Android系统简述 3

2.2 开发语言的选择 3

2.3 Android系统常用包 4

2.4 Android系统核心工具 4

2.4.1 eclipse和ADT插件 4

2.4.2 Android SDK和avd管理器 6

2.4.3 Android模拟器 7

2.5 本章小结 7

第三章 系统分析 8

3.1 系统可行性分析 8

3.1.1 技术可行性 8

3.1.2 经济可行性 8

3.1.3 操作可行性 8

3.2 系统环境分析 8

3.3 系统需求分析 8

3.3.1 用户需求 9

3.3.2 功能需求 10

3.4 手机游戏的开发优势 10

3.5 系统流程规划 11

3.6 本章小结 14

第四章 系统设计与实现 15

4.1 创建Android应用程序 15

4.2 编写游戏界面 17

4.2.1 窗口生命周期 17

4.2.2 游戏菜单界面 17

4.2.3 游戏帮助界面 18

4.2.4 游戏选择界面 19

4.3 设置游戏音乐 19

4.4 编写游戏过程 20

4.4.1 编写切片工具 20

4.4.2编写自定义容器 20

4.4.3 打乱图片顺序并实现图片交换 21

4.4.4 编写动画切换效果 21

4.5 游戏过关逻辑 22

4.6 排行榜的实现 22

4.7 游戏的基本优化 24

4.7.1 代码的优化 24

4.7.2 查找表技术 24

4.7.3游戏的感觉和性能问题 24

4.8 本章小结 24

第五章 系统的测试与运行 25

5.1 管理测试环境 25

5.1.1 管理设备配置 25

5.1.2 确定设备的“洁净”初始状态 25

5.1.3 模仿现实世界的活动 25

5.2 编写测试用例 25

5.3 使用模拟器进行测试 26

5.4 使用真机进行测试 33

5.5 本章小结 36

第六章 总结与展望 38

致谢 39

参考文献 40

第一章 引言

1.1 研究背景与意义

截至2018年第四季度,Android以77.7%的市场份额领跑全球市场,Android市场份额的不断扩大也带动了基于Android的移动应用程序的发展。越来越多的开发者们开始投入到Android开发中来,并涌入Android开发的各个领域,其中手机游戏的发展更是如火如荼。

在当下快节奏的生活中,比起那些需要耗费很多精力与时间的大型游戏而言,人们需要的是更为简短、精炼的游戏方式,它可以帮助人们打发学习、工作期间的空余时间。其中,益智类游戏凭借其可玩性与挑战性成为绝大多数人的首选。拼图游戏是一款经典益智类游戏,有着两百多年的历史。拼图不仅仅是一款娱乐游戏,甚至可以用来商业宣传与政治宣传,一战期间,拼图与报纸、收音机成为一种简单而又直接的大众传媒方式。早期的拼图游戏图片单一、关卡简单,没有太大的难度。随着互联网的发展,用户对于游戏的要求越来越高,拼图游戏也在不断发展,增加了难度选择、图片选择、音乐、计时、排行榜等功能,使得用户充分感受到拼图游戏的魅力,享受其带来的乐趣。

剩余内容已隐藏,请支付后下载全文,论文总字数:23770字

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

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;