diff --git a/Mines/bin/mines/Field.class b/Mines/bin/mines/Field.class deleted file mode 100644 index f899e0d..0000000 Binary files a/Mines/bin/mines/Field.class and /dev/null differ diff --git a/Mines/bin/mines/MinesFields$GameRunScript.class b/Mines/bin/mines/MinesFields$GameRunScript.class deleted file mode 100644 index 79bcba4..0000000 Binary files a/Mines/bin/mines/MinesFields$GameRunScript.class and /dev/null differ diff --git a/Mines/bin/mines/MinesFields.class b/Mines/bin/mines/MinesFields.class deleted file mode 100644 index 385c7ff..0000000 Binary files a/Mines/bin/mines/MinesFields.class and /dev/null differ diff --git a/Mines/bin/mines/MinesFrame$1.class b/Mines/bin/mines/MinesFrame$1.class deleted file mode 100644 index 553ad8c..0000000 Binary files a/Mines/bin/mines/MinesFrame$1.class and /dev/null differ diff --git a/Mines/bin/mines/MinesFrame$Restart.class b/Mines/bin/mines/MinesFrame$Restart.class deleted file mode 100644 index fbe5367..0000000 Binary files a/Mines/bin/mines/MinesFrame$Restart.class and /dev/null differ diff --git a/Mines/bin/mines/MinesFrame.class b/Mines/bin/mines/MinesFrame.class deleted file mode 100644 index 9ddce6f..0000000 Binary files a/Mines/bin/mines/MinesFrame.class and /dev/null differ diff --git a/Mines/bin/mines/StartFrame$1.class b/Mines/bin/mines/StartFrame$1.class deleted file mode 100644 index 58b74f4..0000000 Binary files a/Mines/bin/mines/StartFrame$1.class and /dev/null differ diff --git a/Mines/bin/mines/StartFrame$2.class b/Mines/bin/mines/StartFrame$2.class deleted file mode 100644 index a24ade9..0000000 Binary files a/Mines/bin/mines/StartFrame$2.class and /dev/null differ diff --git a/Mines/bin/mines/StartFrame$3.class b/Mines/bin/mines/StartFrame$3.class deleted file mode 100644 index 65dbd7a..0000000 Binary files a/Mines/bin/mines/StartFrame$3.class and /dev/null differ diff --git a/Mines/bin/mines/StartFrame$4.class b/Mines/bin/mines/StartFrame$4.class deleted file mode 100644 index 3c9ddd0..0000000 Binary files a/Mines/bin/mines/StartFrame$4.class and /dev/null differ diff --git a/Mines/bin/mines/StartFrame$5.class b/Mines/bin/mines/StartFrame$5.class deleted file mode 100644 index e61c86a..0000000 Binary files a/Mines/bin/mines/StartFrame$5.class and /dev/null differ diff --git a/Mines/bin/mines/StartFrame.class b/Mines/bin/mines/StartFrame.class deleted file mode 100644 index 5cd7180..0000000 Binary files a/Mines/bin/mines/StartFrame.class and /dev/null differ diff --git a/Tetris/bin/tetris/GameOverPanel$1.class b/Tetris/bin/tetris/GameOverPanel$1.class index 9422a86..85cfdfa 100644 Binary files a/Tetris/bin/tetris/GameOverPanel$1.class and b/Tetris/bin/tetris/GameOverPanel$1.class differ diff --git a/Tetris/bin/tetris/GameOverPanel$2.class b/Tetris/bin/tetris/GameOverPanel$2.class index 6d28814..c9ab88d 100644 Binary files a/Tetris/bin/tetris/GameOverPanel$2.class and b/Tetris/bin/tetris/GameOverPanel$2.class differ diff --git a/Tetris/bin/tetris/GameOverPanel$3.class b/Tetris/bin/tetris/GameOverPanel$3.class index 20a7a99..0cf1d7a 100644 Binary files a/Tetris/bin/tetris/GameOverPanel$3.class and b/Tetris/bin/tetris/GameOverPanel$3.class differ diff --git a/Tetris/bin/tetris/GameOverPanel.class b/Tetris/bin/tetris/GameOverPanel.class index 9e77c01..a43efc5 100644 Binary files a/Tetris/bin/tetris/GameOverPanel.class and b/Tetris/bin/tetris/GameOverPanel.class differ diff --git a/Tetris/bin/tetris/MenuPanel$1.class b/Tetris/bin/tetris/MenuPanel$1.class index 0b0e1c2..7c6e1ae 100644 Binary files a/Tetris/bin/tetris/MenuPanel$1.class and b/Tetris/bin/tetris/MenuPanel$1.class differ diff --git a/Tetris/bin/tetris/MenuPanel$2.class b/Tetris/bin/tetris/MenuPanel$2.class index 7a91d69..1ccee9b 100644 Binary files a/Tetris/bin/tetris/MenuPanel$2.class and b/Tetris/bin/tetris/MenuPanel$2.class differ diff --git a/Tetris/bin/tetris/MenuPanel$3.class b/Tetris/bin/tetris/MenuPanel$3.class index 7730fd5..2c182e1 100644 Binary files a/Tetris/bin/tetris/MenuPanel$3.class and b/Tetris/bin/tetris/MenuPanel$3.class differ diff --git a/Tetris/bin/tetris/MenuPanel$4.class b/Tetris/bin/tetris/MenuPanel$4.class index 1a9e772..1aa9dda 100644 Binary files a/Tetris/bin/tetris/MenuPanel$4.class and b/Tetris/bin/tetris/MenuPanel$4.class differ diff --git a/Tetris/bin/tetris/MenuPanel.class b/Tetris/bin/tetris/MenuPanel.class index a190232..c62550b 100644 Binary files a/Tetris/bin/tetris/MenuPanel.class and b/Tetris/bin/tetris/MenuPanel.class differ diff --git a/Tetris/bin/tetris/SettingsPanel$1.class b/Tetris/bin/tetris/SettingsPanel$1.class index 283ef53..6f1d930 100644 Binary files a/Tetris/bin/tetris/SettingsPanel$1.class and b/Tetris/bin/tetris/SettingsPanel$1.class differ diff --git a/Tetris/bin/tetris/SettingsPanel$2.class b/Tetris/bin/tetris/SettingsPanel$2.class index 0d8e5ef..7d06cc7 100644 Binary files a/Tetris/bin/tetris/SettingsPanel$2.class and b/Tetris/bin/tetris/SettingsPanel$2.class differ diff --git a/Tetris/bin/tetris/SettingsPanel$3.class b/Tetris/bin/tetris/SettingsPanel$3.class index f6f195f..f8c6294 100644 Binary files a/Tetris/bin/tetris/SettingsPanel$3.class and b/Tetris/bin/tetris/SettingsPanel$3.class differ diff --git a/Tetris/bin/tetris/SettingsPanel$4.class b/Tetris/bin/tetris/SettingsPanel$4.class index 38244b9..4bc0e64 100644 Binary files a/Tetris/bin/tetris/SettingsPanel$4.class and b/Tetris/bin/tetris/SettingsPanel$4.class differ diff --git a/Tetris/bin/tetris/SettingsPanel$5.class b/Tetris/bin/tetris/SettingsPanel$5.class index ba4fd82..d0194f5 100644 Binary files a/Tetris/bin/tetris/SettingsPanel$5.class and b/Tetris/bin/tetris/SettingsPanel$5.class differ diff --git a/Tetris/bin/tetris/SettingsPanel$6.class b/Tetris/bin/tetris/SettingsPanel$6.class index a986268..755f48e 100644 Binary files a/Tetris/bin/tetris/SettingsPanel$6.class and b/Tetris/bin/tetris/SettingsPanel$6.class differ diff --git a/Tetris/bin/tetris/SettingsPanel.class b/Tetris/bin/tetris/SettingsPanel.class index bd92539..26fa2f7 100644 Binary files a/Tetris/bin/tetris/SettingsPanel.class and b/Tetris/bin/tetris/SettingsPanel.class differ diff --git a/Tetris/bin/tetris/TetrisPane$1.class b/Tetris/bin/tetris/TetrisPane$1.class index 207fd8f..f9fbd7f 100644 Binary files a/Tetris/bin/tetris/TetrisPane$1.class and b/Tetris/bin/tetris/TetrisPane$1.class differ diff --git a/Tetris/bin/tetris/TetrisPane$2.class b/Tetris/bin/tetris/TetrisPane$2.class index 8e9f285..6e7f50c 100644 Binary files a/Tetris/bin/tetris/TetrisPane$2.class and b/Tetris/bin/tetris/TetrisPane$2.class differ diff --git a/Tetris/bin/tetris/TetrisPane$DropExecution.class b/Tetris/bin/tetris/TetrisPane$DropExecution.class index 2190d71..0d338fd 100644 Binary files a/Tetris/bin/tetris/TetrisPane$DropExecution.class and b/Tetris/bin/tetris/TetrisPane$DropExecution.class differ diff --git a/Tetris/bin/tetris/TetrisPane$IShaped.class b/Tetris/bin/tetris/TetrisPane$IShaped.class index 4d5a2e4..f216b0f 100644 Binary files a/Tetris/bin/tetris/TetrisPane$IShaped.class and b/Tetris/bin/tetris/TetrisPane$IShaped.class differ diff --git a/Tetris/bin/tetris/TetrisPane$JShaped.class b/Tetris/bin/tetris/TetrisPane$JShaped.class index 0d26fa5..69f5101 100644 Binary files a/Tetris/bin/tetris/TetrisPane$JShaped.class and b/Tetris/bin/tetris/TetrisPane$JShaped.class differ diff --git a/Tetris/bin/tetris/TetrisPane$KeyControl.class b/Tetris/bin/tetris/TetrisPane$KeyControl.class index 8863316..b25990a 100644 Binary files a/Tetris/bin/tetris/TetrisPane$KeyControl.class and b/Tetris/bin/tetris/TetrisPane$KeyControl.class differ diff --git a/Tetris/bin/tetris/TetrisPane$LShaped.class b/Tetris/bin/tetris/TetrisPane$LShaped.class index 8f0a633..6dfc39c 100644 Binary files a/Tetris/bin/tetris/TetrisPane$LShaped.class and b/Tetris/bin/tetris/TetrisPane$LShaped.class differ diff --git a/Tetris/bin/tetris/TetrisPane$OShaped.class b/Tetris/bin/tetris/TetrisPane$OShaped.class index fc4d11a..077bb99 100644 Binary files a/Tetris/bin/tetris/TetrisPane$OShaped.class and b/Tetris/bin/tetris/TetrisPane$OShaped.class differ diff --git a/Tetris/bin/tetris/TetrisPane$SShaped.class b/Tetris/bin/tetris/TetrisPane$SShaped.class index 60046eb..51ee12a 100644 Binary files a/Tetris/bin/tetris/TetrisPane$SShaped.class and b/Tetris/bin/tetris/TetrisPane$SShaped.class differ diff --git a/Tetris/bin/tetris/TetrisPane$TShaped.class b/Tetris/bin/tetris/TetrisPane$TShaped.class index ef0d1e4..8c3a8f6 100644 Binary files a/Tetris/bin/tetris/TetrisPane$TShaped.class and b/Tetris/bin/tetris/TetrisPane$TShaped.class differ diff --git a/Tetris/bin/tetris/TetrisPane$ZShaped.class b/Tetris/bin/tetris/TetrisPane$ZShaped.class index b5ecd3d..54e3175 100644 Binary files a/Tetris/bin/tetris/TetrisPane$ZShaped.class and b/Tetris/bin/tetris/TetrisPane$ZShaped.class differ diff --git a/Tetris/bin/tetris/TetrisPane.class b/Tetris/bin/tetris/TetrisPane.class index 7ade5d3..f1ea6ab 100644 Binary files a/Tetris/bin/tetris/TetrisPane.class and b/Tetris/bin/tetris/TetrisPane.class differ diff --git a/Tetris/src/tetris/GameOverPanel.java b/Tetris/src/tetris/GameOverPanel.java index 0a66c48..51a0d2f 100644 --- a/Tetris/src/tetris/GameOverPanel.java +++ b/Tetris/src/tetris/GameOverPanel.java @@ -30,13 +30,15 @@ public class GameOverPanel extends JPanel { private JButton restartButton; private JButton menuButton; - private static final Color BACKGROUND_COLOR = new Color(30, 30, 50); - private static final Color TITLE_COLOR = new Color(255, 100, 100); - private static final Color LABEL_COLOR = Color.WHITE; - private static final Color VALUE_COLOR = new Color(100, 200, 255); - private static final Color BUTTON_COLOR = new Color(70, 130, 180); - private static final Color BUTTON_HOVER_COLOR = new Color(100, 160, 210); - private static final Color PANEL_COLOR = new Color(40, 40, 70); + private static final Color BACKGROUND_COLOR = new Color(25, 25, 35); + private static final Color TITLE_COLOR = new Color(255, 120, 120); + private static final Color LABEL_COLOR = new Color(240, 240, 240); + private static final Color VALUE_COLOR = new Color(255, 180, 100); + private static final Color BUTTON_COLOR = new Color(60, 120, 100); + private static final Color BUTTON_HOVER_COLOR = new Color(80, 150, 130); + private static final Color PANEL_COLOR = new Color(35, 35, 45); + + private static final String FONT_NAME = "Microsoft YaHei"; public GameOverPanel() { gameManager = GameManager.getInstance(); @@ -52,24 +54,24 @@ public GameOverPanel() { private void initComponents() { titleLabel = new JLabel(getGameOverText()); - titleLabel.setFont(new Font("Arial", Font.BOLD, 48)); + titleLabel.setFont(new Font(FONT_NAME, Font.BOLD, 48)); titleLabel.setForeground(TITLE_COLOR); titleLabel.setHorizontalAlignment(SwingConstants.CENTER); scoreLabel = new JLabel(getScoreText() + ": 0"); - scoreLabel.setFont(new Font("Arial", Font.PLAIN, 20)); + scoreLabel.setFont(new Font(FONT_NAME, Font.PLAIN, 20)); scoreLabel.setForeground(LABEL_COLOR); levelLabel = new JLabel(getLevelText() + ": 1"); - levelLabel.setFont(new Font("Arial", Font.PLAIN, 20)); + levelLabel.setFont(new Font(FONT_NAME, Font.PLAIN, 20)); levelLabel.setForeground(LABEL_COLOR); linesLabel = new JLabel(getLinesText() + ": 0"); - linesLabel.setFont(new Font("Arial", Font.PLAIN, 20)); + linesLabel.setFont(new Font(FONT_NAME, Font.PLAIN, 20)); linesLabel.setForeground(LABEL_COLOR); timeLabel = new JLabel(getTimeText() + ": 00:00"); - timeLabel.setFont(new Font("Arial", Font.PLAIN, 20)); + timeLabel.setFont(new Font(FONT_NAME, Font.PLAIN, 20)); timeLabel.setForeground(LABEL_COLOR); restartButton = createStyledButton(getRestartText()); @@ -135,7 +137,7 @@ private void setupLayout() { private JButton createStyledButton(String text) { JButton button = new JButton(text); - button.setFont(new Font("Arial", Font.BOLD, 18)); + button.setFont(new Font(FONT_NAME, Font.BOLD, 18)); button.setForeground(Color.WHITE); button.setBackground(BUTTON_COLOR); button.setFocusPainted(false); diff --git a/Tetris/src/tetris/MenuPanel.java b/Tetris/src/tetris/MenuPanel.java index 4134be3..dce4fdf 100644 --- a/Tetris/src/tetris/MenuPanel.java +++ b/Tetris/src/tetris/MenuPanel.java @@ -25,11 +25,13 @@ public class MenuPanel extends JPanel { private JButton settingsButton; private JButton exitButton; - private static final Color BACKGROUND_COLOR = new Color(30, 30, 50); - private static final Color TITLE_COLOR = new Color(100, 200, 255); - private static final Color BUTTON_COLOR = new Color(70, 130, 180); - private static final Color BUTTON_HOVER_COLOR = new Color(100, 160, 210); - private static final Color BUTTON_TEXT_COLOR = Color.WHITE; + private static final Color BACKGROUND_COLOR = new Color(25, 25, 35); + private static final Color TITLE_COLOR = new Color(255, 180, 100); + private static final Color BUTTON_COLOR = new Color(60, 120, 100); + private static final Color BUTTON_HOVER_COLOR = new Color(80, 150, 130); + private static final Color BUTTON_TEXT_COLOR = new Color(240, 240, 240); + + private static final String FONT_NAME = "Microsoft YaHei"; public MenuPanel() { gameManager = GameManager.getInstance(); @@ -44,7 +46,7 @@ public MenuPanel() { private void initComponents() { titleLabel = new JLabel("TETRIS"); - titleLabel.setFont(new Font("Arial", Font.BOLD, 72)); + titleLabel.setFont(new Font(FONT_NAME, Font.BOLD, 72)); titleLabel.setForeground(TITLE_COLOR); titleLabel.setHorizontalAlignment(JLabel.CENTER); @@ -102,14 +104,14 @@ private void setupLayout() { infoPanel.setBackground(BACKGROUND_COLOR); JLabel infoLabel = new JLabel(getControlsText()); infoLabel.setForeground(Color.LIGHT_GRAY); - infoLabel.setFont(new Font("Arial", Font.PLAIN, 12)); + infoLabel.setFont(new Font(FONT_NAME, Font.PLAIN, 12)); infoPanel.add(infoLabel); add(infoPanel, BorderLayout.SOUTH); } private JButton createStyledButton(String text) { JButton button = new JButton(text); - button.setFont(new Font("Arial", Font.BOLD, 18)); + button.setFont(new Font(FONT_NAME, Font.BOLD, 18)); button.setForeground(BUTTON_TEXT_COLOR); button.setBackground(BUTTON_COLOR); button.setFocusPainted(false); @@ -156,11 +158,11 @@ private String getControlsText() { protected void paintComponent(Graphics g) { super.paintComponent(g); - g.setColor(new Color(50, 50, 80, 30)); - for (int i = 0; i < 20; i++) { + g.setColor(new Color(80, 60, 40, 20)); + for (int i = 0; i < 25; i++) { int x = (int) (Math.random() * getWidth()); int y = (int) (Math.random() * getHeight()); - int size = 20 + (int) (Math.random() * 40); + int size = 15 + (int) (Math.random() * 35); g.fillRect(x, y, size, size); } } diff --git a/Tetris/src/tetris/SettingsPanel.java b/Tetris/src/tetris/SettingsPanel.java index a86a6e4..cae7fd4 100644 --- a/Tetris/src/tetris/SettingsPanel.java +++ b/Tetris/src/tetris/SettingsPanel.java @@ -35,12 +35,14 @@ public class SettingsPanel extends JPanel { private JButton backButton; private JButton applyButton; - private static final Color BACKGROUND_COLOR = new Color(30, 30, 50); - private static final Color TITLE_COLOR = new Color(100, 200, 255); - private static final Color LABEL_COLOR = Color.WHITE; - private static final Color BUTTON_COLOR = new Color(70, 130, 180); - private static final Color BUTTON_HOVER_COLOR = new Color(100, 160, 210); - private static final Color PANEL_COLOR = new Color(40, 40, 70); + private static final Color BACKGROUND_COLOR = new Color(25, 25, 35); + private static final Color TITLE_COLOR = new Color(255, 180, 100); + private static final Color LABEL_COLOR = new Color(240, 240, 240); + private static final Color BUTTON_COLOR = new Color(60, 120, 100); + private static final Color BUTTON_HOVER_COLOR = new Color(80, 150, 130); + private static final Color PANEL_COLOR = new Color(35, 35, 45); + + private static final String FONT_NAME = "Microsoft YaHei"; private int tempDifficulty; private int tempResolution; @@ -63,18 +65,18 @@ public SettingsPanel() { private void initComponents() { titleLabel = new JLabel(getSettingsTitleText()); - titleLabel.setFont(new Font("Arial", Font.BOLD, 36)); + titleLabel.setFont(new Font(FONT_NAME, Font.BOLD, 36)); titleLabel.setForeground(TITLE_COLOR); titleLabel.setHorizontalAlignment(JLabel.CENTER); difficultyLabel = new JLabel(getDifficultyText() + ":"); - difficultyLabel.setFont(new Font("Arial", Font.PLAIN, 16)); + difficultyLabel.setFont(new Font(FONT_NAME, Font.PLAIN, 16)); difficultyLabel.setForeground(LABEL_COLOR); String[] difficultyOptions = getDifficultyOptions(); difficultyCombo = new JComboBox<>(difficultyOptions); difficultyCombo.setSelectedIndex(tempDifficulty); - difficultyCombo.setFont(new Font("Arial", Font.PLAIN, 14)); + difficultyCombo.setFont(new Font(FONT_NAME, Font.PLAIN, 14)); difficultyCombo.setPreferredSize(new Dimension(150, 30)); difficultyCombo.addActionListener(new ActionListener() { @Override @@ -84,13 +86,13 @@ public void actionPerformed(ActionEvent e) { }); resolutionLabel = new JLabel(getResolutionText() + ":"); - resolutionLabel.setFont(new Font("Arial", Font.PLAIN, 16)); + resolutionLabel.setFont(new Font(FONT_NAME, Font.PLAIN, 16)); resolutionLabel.setForeground(LABEL_COLOR); String[] resolutionOptions = getResolutionOptions(); resolutionCombo = new JComboBox<>(resolutionOptions); resolutionCombo.setSelectedIndex(tempResolution); - resolutionCombo.setFont(new Font("Arial", Font.PLAIN, 14)); + resolutionCombo.setFont(new Font(FONT_NAME, Font.PLAIN, 14)); resolutionCombo.setPreferredSize(new Dimension(150, 30)); resolutionCombo.addActionListener(new ActionListener() { @Override @@ -100,13 +102,13 @@ public void actionPerformed(ActionEvent e) { }); languageLabel = new JLabel(getLanguageText() + ":"); - languageLabel.setFont(new Font("Arial", Font.PLAIN, 16)); + languageLabel.setFont(new Font(FONT_NAME, Font.PLAIN, 16)); languageLabel.setForeground(LABEL_COLOR); String[] languageOptions = getLanguageOptions(); languageCombo = new JComboBox<>(languageOptions); languageCombo.setSelectedIndex(tempLanguage); - languageCombo.setFont(new Font("Arial", Font.PLAIN, 14)); + languageCombo.setFont(new Font(FONT_NAME, Font.PLAIN, 14)); languageCombo.setPreferredSize(new Dimension(150, 30)); languageCombo.addActionListener(new ActionListener() { @Override @@ -187,7 +189,7 @@ private void setupLayout() { private JButton createStyledButton(String text) { JButton button = new JButton(text); - button.setFont(new Font("Arial", Font.BOLD, 16)); + button.setFont(new Font(FONT_NAME, Font.BOLD, 16)); button.setForeground(Color.WHITE); button.setBackground(BUTTON_COLOR); button.setFocusPainted(false); diff --git a/Tetris/src/tetris/TetrisPane.java b/Tetris/src/tetris/TetrisPane.java index 7f3d743..ab02400 100644 --- a/Tetris/src/tetris/TetrisPane.java +++ b/Tetris/src/tetris/TetrisPane.java @@ -61,11 +61,13 @@ public class TetrisPane extends JPanel { private JLabel nextPieceLabel; private JLabel controlsLabel; - private static final Color BACKGROUND_COLOR = new Color(20, 20, 40); - private static final Color GRID_COLOR = new Color(40, 40, 70); - private static final Color INFO_PANEL_COLOR = new Color(30, 30, 60); - private static final Color LABEL_COLOR = new Color(100, 200, 255); - private static final Color VALUE_COLOR = Color.WHITE; + private static final Color BACKGROUND_COLOR = new Color(20, 20, 30); + private static final Color GRID_COLOR = new Color(35, 35, 50); + private static final Color INFO_PANEL_COLOR = new Color(25, 25, 35); + private static final Color LABEL_COLOR = new Color(255, 180, 100); + private static final Color VALUE_COLOR = new Color(240, 240, 240); + + private static final String FONT_NAME = "Microsoft YaHei"; /** * 构造函数 @@ -118,7 +120,7 @@ private void initInfoPanel() { y += labelHeight + gap + 100; controlsLabel = createInfoLabel(getControlsTitleText(), "", y); - controlsLabel.setFont(new Font("Arial", Font.BOLD, 14)); + controlsLabel.setFont(new Font(FONT_NAME, Font.BOLD, 14)); y += labelHeight; JLabel[] controlLabels = createControlLabels(); @@ -141,7 +143,7 @@ private JLabel createInfoLabel(String text, String value, int y) { JLabel label = new JLabel("" + text + "
" + value + ""); label.setBounds(20, y, 140, 50); label.setForeground(LABEL_COLOR); - label.setFont(new Font("Arial", Font.BOLD, 14)); + label.setFont(new Font(FONT_NAME, Font.BOLD, 14)); label.setVerticalAlignment(SwingConstants.CENTER); return label; } @@ -202,7 +204,7 @@ private void paintGameArea(Graphics g) { int offsetX = 10; int offsetY = 10; - g2d.setColor(new Color(50, 50, 80)); + g2d.setColor(new Color(60, 60, 80)); g2d.fillRect(offsetX - 2, offsetY - 2, COLUMNS * cellSize + 4, ROWS * cellSize + 4); g2d.setColor(GRID_COLOR); @@ -217,7 +219,7 @@ private void paintGameArea(Graphics g) { } } - g2d.setColor(new Color(30, 30, 50)); + g2d.setColor(new Color(25, 25, 40)); for (int i = 0; i <= ROWS; i++) { g2d.drawLine( offsetX, @@ -256,7 +258,7 @@ private void paintGameArea(Graphics g) { g2d.fillRect(offsetX, offsetY, COLUMNS * cellSize, ROWS * cellSize); g2d.setColor(Color.WHITE); - g2d.setFont(new Font("Arial", Font.BOLD, 36)); + g2d.setFont(new Font(FONT_NAME, Font.BOLD, 36)); String pauseText = config.getLanguage() == GameConfig.LANGUAGE_CHINESE ? "暂停" : "PAUSED"; int textWidth = g2d.getFontMetrics().stringWidth(pauseText); g2d.drawString( diff --git a/Worm/bin/worm/Cell.class b/Worm/bin/worm/Cell.class deleted file mode 100644 index 88dcc37..0000000 Binary files a/Worm/bin/worm/Cell.class and /dev/null differ diff --git a/Worm/bin/worm/Worm.class b/Worm/bin/worm/Worm.class deleted file mode 100644 index 531350a..0000000 Binary files a/Worm/bin/worm/Worm.class and /dev/null differ diff --git a/Worm/bin/worm/WormFrame.class b/Worm/bin/worm/WormFrame.class deleted file mode 100644 index 5d58384..0000000 Binary files a/Worm/bin/worm/WormFrame.class and /dev/null differ diff --git a/Worm/bin/worm/WormStage$KeyControl.class b/Worm/bin/worm/WormStage$KeyControl.class deleted file mode 100644 index cd52387..0000000 Binary files a/Worm/bin/worm/WormStage$KeyControl.class and /dev/null differ diff --git a/Worm/bin/worm/WormStage$Move.class b/Worm/bin/worm/WormStage$Move.class deleted file mode 100644 index fa8b8d5..0000000 Binary files a/Worm/bin/worm/WormStage$Move.class and /dev/null differ diff --git a/Worm/bin/worm/WormStage.class b/Worm/bin/worm/WormStage.class deleted file mode 100644 index 0bd6495..0000000 Binary files a/Worm/bin/worm/WormStage.class and /dev/null differ