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,27 +20,32 @@ 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.lightGreen); g.setColor(m.darkGreen);
g.setFont(m.gameFont.deriveFont(75f)); for (int i = 0; i < 100; i++) {
if (m.chosenOption == 1) { g.drawLine(0, 6*i, m.windowWidth, 6*i);
g.drawString("play game", 260, 390); g.drawLine(8*i, 0, 8*i, m.windowHeight);
g.setColor(m.darkerGreen); }
g.drawString("exit game", 265, 460); g.setColor(m.lightGreen);
} else if (m.chosenOption == 2) { g.setFont(m.gameFont.deriveFont(75f));
g.drawString("exit game", 265, 460); if (m.chosenOption == 1) {
g.setColor(m.darkerGreen); g.drawString("play game", 260, 390);
g.drawString("play game", 260, 390); g.setColor(m.darkerGreen);
} else { g.drawString("exit game", 265, 460);
m.chosenOption = 1; } else if (m.chosenOption == 2) {
} g.drawString("exit game", 265, 460);
g.drawString("by dvorakmortonxd", 135, 290+m.textHoverAmount/4); g.setColor(m.darkerGreen);
g.setFont(m.gameFont.deriveFont(150f)); g.drawString("play game", 260, 390);
g.drawString("Retro", 230, 120+m.textHoverAmount/4); } else {
g.drawString("Game", 235, 220+m.textHoverAmount/4); m.chosenOption = 1;
g.setFont(m.gameFont.deriveFont(40f)); }
g.drawString("tip: use arrow keys to navigate through menu", 65, 550); g.drawString("by dvorakmortonxd", 135, 290+m.textHoverAmount/4);
g.drawString("and enter to pick an option!", 200, 580); g.setFont(m.gameFont.deriveFont(150f));
Toolkit.getDefaultToolkit().sync(); g.drawString("Retro", 230, 120+m.textHoverAmount/4);
g.drawString("Game", 235, 220+m.textHoverAmount/4);
g.setFont(m.gameFont.deriveFont(40f));
g.drawString("tip: use arrow keys to navigate through menu", 65, 550);
g.drawString("and enter to pick an option!", 200, 580);
Toolkit.getDefaultToolkit().sync();
} }
} }
} }