admin 管理员组

文章数量: 1086019


2024年3月12日发(作者:jdk8u)

基于JAVA的拼图游戏

基于JAVA的拼图游戏

摘要

JAVA语言是由美国sun公司开发的一种完全面向对象的程序设计语言,它由c++语言发

展而来,但比c++语言简单。JAVA语言具有简单、与平台无关、高效、健壮、安全、多线程等

特点,是当前网络编程中的首选语言。本文主要通过JAVA语言来开发一个小游戏,以实现其相

关功能。

随着社会的发展,计算机已经成为人么日常生活,学习办公中不可缺少的一部分,并

在各个领域发挥着重要的作用。在计算机迅猛发展的影响下,计算机游戏也随之兴盛起来。

拼图游戏就是其中一中,它适用范围广,老少皆宜。该游戏不仅可锻炼动手能力,观察能

力,而且还能培养人与人之间的协作能力。它是一个应用程序,它的游戏规则和win7的

拼图游戏是一样的。将一张图片分割成16张小图,将除去左上角的其余15张图片放入一

个4*4的网格内,通过鼠标的点击图片来切换空白处对换位置,让其复原成原来的顺序,

游戏就完成了。可以选择下一张来切换另一张图片,或者按开局重新开始游戏。

关键词:JAVA 2平台标准版,JAVA语言,小应用程序

I

Jigsaw puzzle based on Java

abstract

JAVA language is developed by the sun a fully object-oriented programming language, it is

developed by c + + language, but simpler than c + + JAVA language has a simple,

platform-independent, efficient, robust and security, multithreading, is the preferred language in

the current network paper mainly through the JAVA language to develop a

small game, in order to realize its related functions.

With the development of the society, the computer has become the people daily life, an

indispensable part of learning in the office, and play an important role in all the

influence of the rapid development of computer, computer games has been

puzzle is among them one, its applicability is wide and for young and game is not only

can exercise ability, observation ability, but also can cultivate interpersonal cooperation

puzzle game is based on the J2SE platform development, it is an application, it is the

rules of the game and win7 puzzle game is the e will be divided into 16 images, will

remove the upper left corner of the rest of the 15 images in a 4 * 4 mesh, the blank space with

the mouse click on the image to switch switch position, make its recovery as the original

sequence, the game is choose the next to switch the other picture, or press start to

start the game.

Keywords: Java 2 Platform, Standard Edition, JAVA language, application.

II


本文标签: 语言 图片 计算机 游戏 切换