摘要随着社会日新月异的变化和互联网的飞速发展,计算机已经普及到人们的日常生活中,网络也成为人们生活中的重要组成部分。好的游戏能够给人们的生活带来健康愉快的补充,唯美的艺术享受,一定的教育功效。俄罗斯方块游戏作为一款风靡全球的最经典的益智休闲游戏之一,已经成为老幼皆宜的小游戏。对一般用户来说,它的规则简单,容易上手,但游戏过程却变化无穷。本游戏的设计综合了单机版与双人对战版两种模式,用户可任选一种进行游戏。与通常俄罗斯方块游戏的不同之处在于:在消除满行方块时,方块的颜色会发生变化,以此来提示用户。另外,本游戏还增加了背景音乐和音效的播放功能。单机版中增加了排行榜的功能,游戏结束时,用户可通过对话框输入自己的姓名并存储到排行榜数据表中,如果进入前50名,即可在排行榜上看到自己的游戏记录。双人对战版,实现了人和人之间的对战,提高了游戏的互动性和娱乐性。既能使用户享受到游戏中的乐趣,又能为用户提供一个展现高超技艺的场所。本游戏是采用java的GUI(图形用户界面)组件创建的,强调人—机—环境三者作为一个系统进行总体设计。使操作更人性化,减轻了用户的认知负担,使其更适合用户的操作需求。关键词俄罗斯方块;单机版;双人对战版;图形用户界面AbstractWiththerapidchangeofsocietyandthedevelopmentofInternet,thecomputerhasalreadybeenrunthroughinoursdailylife,andthenetworkalsobecomesoneimportantpartofpeople'slife.Thegoodgamecouldbringthesupplementwithhealthandhappy,exquisiteenjoyofart,certainefficiencyofeducationtopeople'slife.Tetris,asoneofthemostclassicalgames,whichisilluminatingandrelaxing,ispopularedwithallovertheworld,hasbecamealittlegamethatissuitboththeyoungandtheold.Togeneralusers,itsruleissimple,easytograsp,buttheprocessofthegameischanginginfinitely.Thedesignofthisgameincludestwokindsofmodes,bothsingle-playergamesanddoublebattlesversion,userscanchooseanyofthegame.ThedifferencewithcommonTetrisliesin:Whileeliminatingthefullysquares,thecolorofthesquarewillchange,soastohintusers.Inaddition,thebroadcastfunctionofthebackgroundmusicandsoundareaddedinthisgame.Thefunctionofbillboardalsoaddedintothesingle-playergames,whilegameisover,userscaninputtheirownnamesthroughdialogboxandstoretheirscoresinthetableofbillboard,ifoneentersthetopof50,hecouldseehisownrecordofthegameonthebillboard.Thefunctionofinterpersonalfightingisimplementedindoublebattlesversion,whichimprovestheinteractionalandrecreationalofthegame.Thisgamecannotonlymakesusertoenjoyfuninthegame,butalsocanofferaplacetorepresentsuperbskilltouser.ThecomponentofGUI(GraphicalUserInterface)ofJavaisadoptedinthisgame,ittakespeople-themachine-environmentalasasystemsoastodesign,thatmakestheoperationofthesystemmorehumaniztion,thecognizantofburdenoftheusersislightened.Andthisofcoursemakesitevenmoresuitableforthedemandofusers'.KEYWORDTetris;Single-playergame;Double-playersgames;GraphicalUserInterface目录第一章绪言.......................................................................................................................................1第一节选题背景及意义...............................................................................................................1第二节选题目的...........................................................................................................................1第三节研究内容...........................................................................................................................1第二章可行性研究..........................................................................................................