俄罗斯方块游戏
摘要
随着社会日新月异的变化和互联网的飞速发展,计算机已经普及到人们的日常生活中,网络也成为人们生活中的重要组成部分。好的游戏能够给人们的生活带来健康愉快的补充,唯美的艺术享受,一定的教育功效。俄罗斯方块游戏作为一款风靡全球的最经典的益智休闲游戏之一,已经成为老幼皆宜的小游戏。对一般用户来说,它的规则简单,容易上手,但游戏过程却变化无穷。本游戏的设计综合了单机版与双人对战版两种模式,用户可任选一种进行游戏。与通常俄罗斯方块游戏的不同之处在于:在消除满行方块时,方块的颜色会发生变化,以此来提示用户。另外,本游戏还增加了背景音乐和音效的播放功能。单机版中增加了排行榜的功能,游戏结束时,用户可通过对话框输入自己的并存储到排行榜数据表中,如果进入前50名,即可在排行榜上看到自己的游戏记录。双人对战版,实现了人和人之间的对战,提高了游戏的互动性和娱乐性。既能使用户享受到游戏中的乐趣,又能为用户提供一个展现高超技艺的场所。本游戏是采用java的GUI ( 图形用户界面) 组件创建的,强调人-机-环境三者作为一个系统进行总体设计。使操作更人性化,减轻了用户的认知负担,使其更适合用户的操作需求。
关键字:俄罗斯方块;单机版;双人对战版;图形用户界面
Abstract
With the rapid change of society and the development of Internet, the computer has already been run through in ours daily life, and the network also becomes one important part of people's life. The good game could bring the supplement with health and happy, exquisite enjoy of art, certain efficiency of education to people's life. Tetris, as one of the most classical games, which is illuminating and relaxing, is populared with all over the world, has became a little game that is suit both the young and the old. To general users, its rule is simple, easy to grasp, but the process of the game is changing infinitely. The design of this game includes two kinds of modes, both single - player games and double battles version, users can choose any of the game. The difference with common Tetris lies in: While eliminating the fully squares, the color of the square will change, so as to hint users. In addition, the broadcast function of the background music and sound are added in this game. The function of billboard also added into the single - player games, while game is over, users can input their own names through dialog box and store their scores in the table of billboard, if one enters the top of 50, he could see his own record of the game on the billboard. The function of interpersonal fighting is implemented in double battles version, which improves the interactional and recreational of the game. This game can not only makes user to enjoy fun in the game, but also can offer a place to represent superb skill to user. The component of GUI (Graphical User Interface) of Java is adopted in this game, it takes people - the machine - environmental as a system so as to design, that makes the operation of the system more humaniztion, the cognizant of burden of the users is lightened.And this of course makes it even more suitable for the demand of users'.
Keywords: Tetris; Single-player game