1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 沃拼图游戏软件测试 超完整的手机拼图游戏附测试代码本科毕业论文.doc

沃拼图游戏软件测试 超完整的手机拼图游戏附测试代码本科毕业论文.doc

时间:2023-06-04 04:30:11

相关推荐

沃拼图游戏软件测试 超完整的手机拼图游戏附测试代码本科毕业论文.doc

超完整的手机拼图游戏附测试代码本科毕业论文

本 科 毕 业 设 计

设 计 题 目 基于J2ME手机拼图游戏的关键技术研究与实现

姓名(学号)

系 别

专 业 通信工程

导 师 姓 名

二○一二 年 六

基于J2ME的手机拼图游戏的关键技术研究与实现

作 者指导教师摘要: 在21世纪的信息时代,随着通信技术的高速发展,移动网络终端性能的不断提高与完善以及手机的高普及率,人们对手机终端应用开发的需求在不断增大,其对手机的需求已不仅仅是把作为一款简单的通讯工具,而是渐渐习惯于手机作为新的娱乐工具,因而手机越来越多的应用到人们的生活中,特别是手机游戏的推出受到了人们热烈的追捧,而我所设计的这款手机拼图游戏对于人们的智力开发有一定的帮助。

在拼图游戏中用到的关键技术主要有手机游戏的图像和按键处理、多线程的使用等关键技术及解决方案。在手机游戏图像处理这一块用了Canvas类的子类GameCanvas进行游戏画布,通过算法计算图形界面的尺寸。在按键事件处理方面也是通过Canvas类中的三个方法进行设置,包括按键按下的时候,按键长按的时候以及按键释放的时候。为了使玩家一边玩游戏的同时可以听到动感的声音,所以在这个拼图游戏中使用了多线程,由于多个线程之间可能会共享内存,而多线程的机制实际上相当于CPU交替分配给不同的代码段来运行,因此安全问题就成了重要问题。在这一方面也做了安全处理,在代码中增加了关键字synchronized ,使线程同步,如果其他线程要想调用这个资源就需要等待,保证了机制的安全运行。在异常方面,抛出的各种各样异常也做了相应的处理。经过以上技术处理基本解决了手机拼图游戏的运行及安全工作。

关键词:J2ME插件;拼图;手机游戏。

Jigsaw puzzle based on the J2ME mobile phone key technology research

Abstract:With the rapid development of communications technology in the 21st century information age, the high penetration of mobile network terminal continuously improve the performance and improvement, as well as mobile phones, the demand for application development of mobile terminals in increasing demand for mobile phonesnot just as a simple communication tool, but gradually accustomed to the phone as a new entertainment tool, and thus the phone more and more to people's lives, especially the introduction of mobile games has been the enthusiastic pursuitI designed this phone jigsaw puzzle with the help of people's intellectual development.The key techniques used in the jigsaw puzzle mobile games, images and buttons, multi-threaded use of key technologies and solutions. This one with a subclass of the Canvas class GameCanvas game canvas, by the algorithm to calculate the size of the graphical interface in the mobile game image processing. Three methods in the Canvas class in the button event handler i

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。