added these linings behind the main screen to look more like an old display

This commit is contained in:
dvorakmortonxd 2026-10-28 11:12:46 +01:00
commit 9273beb673
2 changed files with 27 additions and 21 deletions

View file

@ -27,6 +27,7 @@ public class Game extends JPanel implements ActionListener {
// colors I'll be using // colors I'll be using
public static Color backgroundGreen = new Color(45, 73, 45); public static Color backgroundGreen = new Color(45, 73, 45);
public static Color lightGreen = new Color(100, 120, 100); public static Color lightGreen = new Color(100, 120, 100);
public static Color darkGreen = new Color(40, 65, 40);
public static Color darkerGreen = new Color(25, 50, 25); public static Color darkerGreen = new Color(25, 50, 25);
// text hover animation and if it should hover down or up // text hover animation and if it should hover down or up

View file

@ -20,6 +20,11 @@ public class Update {
static void paint(Game m, Graphics g) { static void paint(Game m, Graphics g) {
if (m.scene.equals("main_menu")) { if (m.scene.equals("main_menu")) {
g.setColor(m.darkGreen);
for (int i = 0; i < 100; i++) {
g.drawLine(0, 6*i, m.windowWidth, 6*i);
g.drawLine(8*i, 0, 8*i, m.windowHeight);
}
g.setColor(m.lightGreen); g.setColor(m.lightGreen);
g.setFont(m.gameFont.deriveFont(75f)); g.setFont(m.gameFont.deriveFont(75f));
if (m.chosenOption == 1) { if (m.chosenOption == 1) {