【正文】
第三節(jié) 經(jīng)濟(jì)可行性 .........................................................................................................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 的通信機(jī)制 ......................................................................... 22 第七節(jié) 數(shù)據(jù)庫設(shè) 計 ....................................................................................................... 23 第八節(jié) 游戲的總體流程圖 ............................................................................................. 24 第五章 詳細(xì)設(shè)計與實現(xiàn) ....................................................................................................... 25 第一節(jié) 詳細(xì)設(shè)計概述 .................................................................................................. 25 第二節(jié) 游戲主界面設(shè)計與實現(xiàn) ...................................................................................... 25 第三節(jié) 俄羅斯方格類的設(shè)計與實現(xiàn) ............................................................................... 28 第四節(jié) 游戲塊的設(shè)計與實現(xiàn) ......................................................................................... 29 第五節(jié) 游戲控制的設(shè)計與實現(xiàn) ...................................................................................... 30 第六節(jié) 單機(jī)版俄羅斯方塊游戲的設(shè)計與實現(xiàn) ................................................................. 31 第七節(jié) 雙人對戰(zhàn)俄羅斯方塊游戲的設(shè)計與實現(xiàn) ............................................................. 36 結(jié)束語 42 謝辭 44 參考文獻(xiàn) .............................................................................................................................. 45 1 第一章 緒 言 第一節(jié) 選題背景及意義 游戲軟件是一種與文化背景密切聯(lián)系的產(chǎn)品,具有很強(qiáng)的民族性和豐富的文化內(nèi)涵。 Singleplayer game。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。 關(guān)鍵詞 俄羅斯方塊;單機(jī)版;雙人對戰(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。 本游戲是采用 java 的GUI ( 圖形用戶界面 ) 組 件創(chuàng)建的, 強(qiáng)調(diào)人 — 機(jī) — 環(huán)境三者作為一個系統(tǒng)進(jìn)行總體設(shè)計 。雙人對戰(zhàn)版,實現(xiàn)了人和人之間的對戰(zhàn),提高了游戲的互動性和娛樂性。另外,本游戲還增加了背景音樂和音效的播放功能。本游戲的設(shè)計綜合了 單機(jī) 版 與 雙人 對戰(zhàn) 版 兩種模式,用戶可任選一種進(jìn)行游戲。 俄羅斯方塊游戲作為 一款風(fēng)靡全球的最經(jīng)典的益智休閑游戲之一 ,已經(jīng)成為老幼皆宜的小游戲 。 摘要 隨著社會日新月異的變化和互聯(lián)網(wǎng)的飛速發(fā)展,計算機(jī)已經(jīng)普及到人們的日常生活中,網(wǎng)絡(luò)也成為人們生活中的重要組成部分。 好的游戲 能夠 給人們的生活帶來健康愉快的補(bǔ)充,唯美的藝術(shù)享受, 一定 的教育功效。對一般用戶來說,它的規(guī)則簡單,容易上手 ,但游戲過程卻變化無窮。 與通常俄羅斯方塊游戲的不同之處在于:在消除滿行方塊時,方塊的顏色會發(fā)生變化,以此來提示用戶。單機(jī)版中 增加了 排行榜的功能 , 游戲結(jié)束時,用戶可通過對話框輸入自己的姓名并存儲到排行榜數(shù)據(jù)表中,如果進(jìn)入前 50名,即可在排行榜上看到自己的游戲記錄。既能 使用戶 享受 到游戲中的樂趣, 又能為 用戶提供一個展現(xiàn)高超技藝的場所。使操作更人性化,減輕 了用戶 的認(rèn)知負(fù)擔(dān),使其更適合用戶的操作需求 。s life. The good game could bring the supplement with health and happy, exquisite enjoy of art, certain efficiency of education to people39。. KEY WORD Tetris。 Doubleplayers games。伴隨著游戲軟件在市場上的銷售,與其相關(guān)的文化也隨之傳播。游戲是一種基于計算機(jī)的應(yīng)用軟 件,是新型的休閑娛樂方式。 俄羅斯方塊作為 最經(jīng)典的益智休閑游戲之一 , 截至 2021 年 已經(jīng) 發(fā)售了 億份,受到 50多個國家和地區(qū)的玩家喜愛,有超過