資源簡介
Java實現的桌球游戲源碼,編譯后直接運行,也有編譯好的 class文件,只有一份非常方便
java最簡易開發的桌球小游戲
代碼片段和文件信息
import?java.awt.Color;
import?java.awt.frame;
import?java.awt.Graphics;
public?class?BackGround?extends?frame{
BilliardBall?bb;
public?void?draw(Graphics?g){
Color?c?=?g.getColor();
g.setColor(Color.GREEN);
g.fillRect(20?40?bb.GAME_X?bb.GAME_Y);
g.setColor(Color.BLACK);
g.fillOval(5?20?40?40);
g.fillOval(bb.BACK_X/2-20?20?40?40);
g.fillOval(bb.BACK_X-45?20?40?40);
g.fillOval(5bb.BACK_Y-40?40?40);
g.fillOval(bb.BACK_X/2-20?bb.BACK_Y-40?40?40);
g.fillOval(bb.BACK_X-45?bb.BACK_Y-40?40?40);
g.setColor(Color.WHITE);
g.drawRect(100?25?100?10);
g.setColor(c);
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-02-01?19:30??Ball\
?????文件?????????297??2017-06-16?17:12??Ball\.classpath
?????目錄???????????0??2019-02-01?19:30??Ball\.git\
?????文件??????????26??2017-06-17?13:15??Ball\.git\COMMIT_EDITMSG
?????文件??????????98??2017-06-17?13:13??Ball\.git\FETCH_HEAD
?????文件??????????23??2017-06-17?13:13??Ball\.git\HEAD
?????文件??????????41??2017-06-17?13:13??Ball\.git\ORIG_HEAD
?????文件?????????130??2017-06-17?13:13??Ball\.git\config
?????文件??????????73??2017-06-17?13:13??Ball\.git\desc
?????目錄???????????0??2019-02-01?19:30??Ball\.git\hooks\
?????文件?????????478??2017-06-17?13:13??Ball\.git\hooks\applypatch-msg.sample
?????文件?????????896??2017-06-17?13:13??Ball\.git\hooks\commit-msg.sample
?????文件?????????189??2017-06-17?13:13??Ball\.git\hooks\post-update.sample
?????文件?????????424??2017-06-17?13:13??Ball\.git\hooks\pre-applypatch.sample
?????文件????????1642??2017-06-17?13:13??Ball\.git\hooks\pre-commit.sample
?????文件????????1348??2017-06-17?13:13??Ball\.git\hooks\pre-push.sample
?????文件????????4951??2017-06-17?13:13??Ball\.git\hooks\pre-reba
?????文件?????????544??2017-06-17?13:13??Ball\.git\hooks\pre-receive.sample
?????文件????????1239??2017-06-17?13:13??Ball\.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2017-06-17?13:13??Ball\.git\hooks\update.sample
?????文件????????2007??2017-06-17?13:15??Ball\.git\index
?????目錄???????????0??2019-02-01?19:30??Ball\.git\info\
?????文件?????????240??2017-06-17?13:13??Ball\.git\info\exclude
?????目錄???????????0??2019-02-01?19:30??Ball\.git\logs\
?????文件?????????309??2017-06-17?13:15??Ball\.git\logs\HEAD
?????目錄???????????0??2019-02-01?19:30??Ball\.git\logs\refs\
?????目錄???????????0??2019-02-01?19:30??Ball\.git\logs\refs\heads\
?????文件?????????309??2017-06-17?13:15??Ball\.git\logs\refs\heads\master
?????目錄???????????0??2019-02-01?19:30??Ball\.git\ob
?????目錄???????????0??2019-02-01?19:30??Ball\.git\ob
?????文件?????????121??2017-06-17?13:15??Ball\.git\ob
............此處省略85個文件信息
評論
共有 條評論