【正文】
摘要 隨著社會日新月異的變化和互聯(lián)網(wǎng)的飛速發(fā)展,計算機已經(jīng)普及到人們的日常生活中,網(wǎng)絡也成為人們生活中的重要組成部分。 好的游戲 能夠 給人們的生活帶來健康愉快的補充,唯美的藝術(shù)享受, 一定 的教育功效。 俄羅斯方塊游戲作為 一款風靡全球的最經(jīng)典的益智休閑游戲之一 ,已經(jīng)成為老幼皆宜的小游戲 。對一般用戶來說,它的規(guī)則簡單,容易上手 ,但游戲過程卻變化無窮。本游戲的設(shè)計綜合了 單機 版 與 雙人 對戰(zhàn) 版 兩種模式,用戶可任選一種進行游戲。 與通常俄羅斯方塊游戲的不同之處在于:在消除滿行方塊時,方塊的顏色會發(fā)生變化,以此來提示用戶。另外,本游戲還增加了背景音樂和音效的播放功能。單機版中 增加了 排行榜的功能 , 游戲結(jié)束時,用戶可通過對話框輸入自己的姓名并存儲到排行榜數(shù)據(jù)表中,如果進入前 50名,即可在排行榜上看到自己的游戲記錄。雙人對戰(zhàn)版,實現(xiàn)了人和人之間的對戰(zhàn),提高了游戲的互動性和娛樂性。既能 使用戶 享受 到游戲中的樂趣, 又能為 用戶提供一個展現(xiàn)高超技藝的場所。 本游戲是采用 java 的GUI ( 圖形用戶界面 ) 組 件創(chuàng)建的, 強調(diào)人 — 機 — 環(huán)境三者作為一個系統(tǒng)進行總體設(shè)計 。使操作更人性化,減輕 了用戶 的認知負擔,使其更適合用戶的操作需求 。 關(guān)鍵詞 俄羅斯方塊;單機版;雙人對戰(zhàn)版;圖形用戶界面 Abstract With the rapid change of society and the development of Inter, the puter has already been run through in ours daily life, and the work also bees one important part of people39。s life. The good game could bring the supplement with health and happy, exquisite enjoy of art, certain efficiency of education to people39。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 mon 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 ponent 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 this of course makes it even more suitable for the demand of users39。. KEY WORD Tetris。 Singleplayer game。 Doubleplayers games。 Graphical User Interface 目錄 第一章 緒 言 ........................................................................................................................1 第一節(jié) 選題背景及意義 ..................................................................................................1 第二節(jié) 選題目的 .............................................................................................................1 第三節(jié) 研究內(nèi)容 .............................................................................................................1 第二章 可行性研究 ................................................................................................................5 第一節(jié) 引言 ..................................................................................................................5 第二節(jié) 技術(shù)可行性 .........................................................................................................5 第三節(jié) 經(jīng)濟可行性 .........................................................................................................5 第四節(jié) 操作可行性 .........................................................................................................5 第五節(jié) 法律可行性 .........................................................................................................6 第六節(jié) 結(jié)論 ....................................................................................................................6 第三章 需求分析 ....................................................................................................................6 第一節(jié) 引言 ....................................................................................................................6 第二節(jié) 開發(fā)意圖 .............................................................................................................6 第三節(jié) 游戲功能分析 ......................................................................................................7 第四節(jié) 游戲的 UML 基本模型 ...........................................................................................9 第四章 總體設(shè)計 .................................................................................................................. 17 第一節(jié) 總體設(shè)計概述 .................................................................................................... 17 第二節(jié) 總體設(shè)計思想 .................................................................................................... 18 第三節(jié) 系統(tǒng)的類圖 ....................................................................................................... 19 第四節(jié) 游戲的組件圖 .................................................................................................... 22 第五節(jié) 游戲的配置圖 .................................................................................................... 22 第六節(jié) 面向連接的 Socket 的通信機制 ......................................................................... 22 第七節(jié) 數(shù)據(jù)庫設(shè) 計 ....................................................................................................... 23 第八節(jié) 游戲的總體流程圖 ............................................................................................. 24 第五章 詳細設(shè)計與實現(xiàn) ....................................................................................................... 25 第一節(jié) 詳細設(shè)計概述 .................................................................................................. 25 第二節(jié) 游戲主界面設(shè)計與實現(xiàn) ......................................................