基于java的打砖块游戏

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

北方民族大学学士学位论文论文题目基于JA V A的打砖块游戏开发

系(部)名称: 计算机科学与工程学院

学生姓名:

专业: 软件工程

学号:

指导教师姓名:

论文提交时间: 2014-5-7 论文答辩时间: 2014-5-17 学位授予时间:

北方民族大学教务处制

基于JAVA的打砖块游戏开发

摘要

打砖块是一款堪称经典的小游戏,在掌上游戏机上和许多手机上都能发现这个小游戏。游戏基本内容是玩家通过控制一个能够左右移动的挡板,反弹正在运动中弹球,使之改变移动的方向,用小球消除游戏窗口里面的的砖块,然后到达下一关,在障碍物被消除的过程中,可能会产生一些能改变挡板或者小球状态的物品,例如:挡板变长、变短,小球威力加强等等。

本系统是一个基于Java语言平台的打砖块游戏。主要任务是设计打砖块游戏的算法,并使用JA V A语言编写程序,最终完成游戏编程,并使之能够正确运行。主要是小球的碰撞检测和运动轨迹的算法,碰撞部分可以将小球看成一个矩形,当矩形的边界坐标与砖块、挡板、墙壁等一样时,可以判断为进行了碰撞,而运动轨迹只要在碰撞后将X轴或Y轴取反就可以了。

本文第一章阐述了选题目的及Java游戏目前的发展现状。第二章介绍了Java 语音的特点和基于Java游戏开发的相关的技术。第三章详细介绍了打砖块游戏,包括游戏的规则和期待的效果等。第四章进行打砖块游戏的具体设计与实现,包括界面的设计,类的设计,算法的设计等等。第五章对游戏进行运行和测试,以期检测游戏中的各种问题。期望通过本游戏实例掌握小型Java游戏开发和Java 编程的基础的知识和技巧,使自己具备开发Java游戏基本能力。

关键字:java,游戏设计,测试,打砖块,算法

Arkanoid java-based development

Abstract

Arkanoid is a small classic games on handheld game consoles and many mobile phones can be found on this little game. The basic content of the game by controlling a player can move around the baffle, the rebound is in motion pinball , making changes in the direction of movement , eliminating the bricks with a small ball inside the game window , then reach the next level , the obstacles process is eliminated , the shutter may be some change in the state of pellets or articles such as : the paddle length , shorter, and so enhance the power of the ball .

This system is a Java-based platform Arkanoid game. The main task is to design algorithms Arkanoid game and using JAVA programming language , the final completion of game programming , and enable it to run correctly. The main collision detection algorithm and the trajectory of the ball , the ball collision portion may be regarded as a rectangle, the coordinates of the boundary rectangle when bricks , baffles , such as a wall , the collision can be judged , and exercise Just after the collision trajectory X -axis or Y -axis inverted it.

The first chapter describes the purpose of the topic and the current status of the development of Java games , the second chapter introduces the Java -based voice features and related technologies Java game development , the third leg detailing Arkanoid games, including games rules and expectations effects, Chapter IV specific design and implementation of Arkanoid games, including interface design , class design , algorithm design, etc., the fifth chapter of the game running and testing in order to detect game various problems . Expected by the game master instance small Java game development and Java programming based knowledge and skills , so that they have the basic ability to develop Java games .

Keywords : Java, Game Design, Game Testing , Arkanoid, The Algorithm

相关文档
最新文档