畢業(yè)論文設(shè)計 java游戲程序設(shè)計--連連看游戲設(shè)計.doc
約33頁DOC格式手機打開展開
畢業(yè)論文設(shè)計 java游戲程序設(shè)計--連連看游戲設(shè)計,摘 要本文用java來設(shè)計與實現(xiàn)簡單的連連看游戲的基本功能,玩家可以在游戲區(qū)域中通過鼠標來選取相同的兩個圖片,采用特定的消除規(guī)則對它們進行消除的操作,當(dāng)游戲區(qū)域中的所有圖片對都被消除后玩家即可勝利。文章對該游戲的算法以及游戲圖片的繪制、畫線等進行詳細的介紹,實現(xiàn)比較簡單。文章重點內(nèi)容是:如何設(shè)置整個游戲的界面,如何控制...
內(nèi)容介紹
此文檔由會員 ljjwl8321 發(fā)布
摘 要
本文用Java來設(shè)計與實現(xiàn)簡單的連連看游戲的基本功能,玩家可以在游戲區(qū)域中通過鼠標來選取相同的兩個圖片,采用特定的消除規(guī)則對它們進行消除的操作,當(dāng)游戲區(qū)域中的所有圖片對都被消除后玩家即可勝利。文章對該游戲的算法以及游戲圖片的繪制、畫線等進行詳細的介紹,實現(xiàn)比較簡單。文章重點內(nèi)容是:如何設(shè)置整個游戲的界面,如何控制連連看游戲中隨機圖片的生成且每種圖片必須為偶數(shù)個。游戲開始后,判斷鼠標兩次點擊的圖片能否消去。如何畫出一條線連接這兩個相同的圖片。最后能夠?qū)崿F(xiàn)簡單的不同的玩法和闖關(guān)的功能,增強游戲的趣味興。
[關(guān)鍵詞] 連連看 Java 游戲 重點內(nèi)容
Abstract
Use java for this design and implementation of the simplest lianliankan games, players can the basic functions in the region through the mouse to choose two identical images, in particular the rules for them to be eliminated. when the area in all the pictures to all the players can be eliminated. on the game of the algorithm and a drawn game, drawing a line waiting for detailed information, the relatively simple.The article is focused on the issues : for placing the entire game interface , how to control was a series of view game generated and random photo in every kind of photo must even-numbered . After the start of the game , can judge the photo of the mouse two hits.How to draw a line linking these two identical photo . Final simple different can be achieved and break through the barrier of functional , enhance the taste xing of the game .
[Key words ] Linking up , Java , game Key contents
目 錄
1 引言……………………………………………………………………………….
1.1游戲介紹……………………………………………………………………………
1.2設(shè)計目的……………………………………………………………………….
1.3主要問題……………………………………………………………………….
1.4開發(fā)環(huán)境…………………………………………………………………..
2 需求分析…………………………………………………………………………
3 可行性研究…………………………………………………………………….
4 功能模塊設(shè)計…………………………………………………………………………..
4.1總體模塊………………………………………………………………….
4.2基本類的UML圖…………………………………………………………
5 詳細設(shè)計…………………………………………………………………
5.1界面設(shè)計………………………………………………………………
5.11開始按鈕………………………………………………………
5.12暫定按鈕……………………………………………………….
5.13求助按鈕………………………………………………………
5.14結(jié)束按鈕………………………………………………………..
5.15重排按鈕………………………………………………………..
5.16標簽……………………………………………………………….
5.17記分器…………………………………………………………….
5.2畫圖分析…………………………………………………………………….
5.3偶數(shù)個圖片、重排分析與設(shè)計………………………………………
5.4消去算法的分析與設(shè)計………………………………………………….
5.41初始化工作……………………………………….
5.42水平判斷………………………………………..
5.43垂直判斷………………………………………
5.5畫線的分析與設(shè)計………………………………………………………..
5.6鼠標單擊事件分析與設(shè)計………………………………………………
5.7幫助算法分析與設(shè)計………………………………………………………
5.8不同玩法的分析分析和設(shè)計…………………………………………..
6 編碼…………………………………………………………………………..
7 測試………………………………………………………………………………………….
7.1限時功能的測試…………………………………………………………………
7.2畫線測試……………………………………………………………………….
7.3圖形的移動測試…………………………………………………………………
7.4消除測試…………………………………………………………………………….
8總結(jié)…………………………………………………………………………………….
參考文獻………………………………………………………………………………….
附錄………………………………………………………………………………………
本文用Java來設(shè)計與實現(xiàn)簡單的連連看游戲的基本功能,玩家可以在游戲區(qū)域中通過鼠標來選取相同的兩個圖片,采用特定的消除規(guī)則對它們進行消除的操作,當(dāng)游戲區(qū)域中的所有圖片對都被消除后玩家即可勝利。文章對該游戲的算法以及游戲圖片的繪制、畫線等進行詳細的介紹,實現(xiàn)比較簡單。文章重點內(nèi)容是:如何設(shè)置整個游戲的界面,如何控制連連看游戲中隨機圖片的生成且每種圖片必須為偶數(shù)個。游戲開始后,判斷鼠標兩次點擊的圖片能否消去。如何畫出一條線連接這兩個相同的圖片。最后能夠?qū)崿F(xiàn)簡單的不同的玩法和闖關(guān)的功能,增強游戲的趣味興。
[關(guān)鍵詞] 連連看 Java 游戲 重點內(nèi)容
Abstract
Use java for this design and implementation of the simplest lianliankan games, players can the basic functions in the region through the mouse to choose two identical images, in particular the rules for them to be eliminated. when the area in all the pictures to all the players can be eliminated. on the game of the algorithm and a drawn game, drawing a line waiting for detailed information, the relatively simple.The article is focused on the issues : for placing the entire game interface , how to control was a series of view game generated and random photo in every kind of photo must even-numbered . After the start of the game , can judge the photo of the mouse two hits.How to draw a line linking these two identical photo . Final simple different can be achieved and break through the barrier of functional , enhance the taste xing of the game .
[Key words ] Linking up , Java , game Key contents
目 錄
1 引言……………………………………………………………………………….
1.1游戲介紹……………………………………………………………………………
1.2設(shè)計目的……………………………………………………………………….
1.3主要問題……………………………………………………………………….
1.4開發(fā)環(huán)境…………………………………………………………………..
2 需求分析…………………………………………………………………………
3 可行性研究…………………………………………………………………….
4 功能模塊設(shè)計…………………………………………………………………………..
4.1總體模塊………………………………………………………………….
4.2基本類的UML圖…………………………………………………………
5 詳細設(shè)計…………………………………………………………………
5.1界面設(shè)計………………………………………………………………
5.11開始按鈕………………………………………………………
5.12暫定按鈕……………………………………………………….
5.13求助按鈕………………………………………………………
5.14結(jié)束按鈕………………………………………………………..
5.15重排按鈕………………………………………………………..
5.16標簽……………………………………………………………….
5.17記分器…………………………………………………………….
5.2畫圖分析…………………………………………………………………….
5.3偶數(shù)個圖片、重排分析與設(shè)計………………………………………
5.4消去算法的分析與設(shè)計………………………………………………….
5.41初始化工作……………………………………….
5.42水平判斷………………………………………..
5.43垂直判斷………………………………………
5.5畫線的分析與設(shè)計………………………………………………………..
5.6鼠標單擊事件分析與設(shè)計………………………………………………
5.7幫助算法分析與設(shè)計………………………………………………………
5.8不同玩法的分析分析和設(shè)計…………………………………………..
6 編碼…………………………………………………………………………..
7 測試………………………………………………………………………………………….
7.1限時功能的測試…………………………………………………………………
7.2畫線測試……………………………………………………………………….
7.3圖形的移動測試…………………………………………………………………
7.4消除測試…………………………………………………………………………….
8總結(jié)…………………………………………………………………………………….
參考文獻………………………………………………………………………………….
附錄………………………………………………………………………………………