added these linings behind the main screen to look more like an old display
This commit is contained in:
parent
0a90cc1e64
commit
9273beb673
2 changed files with 27 additions and 21 deletions
|
|
@ -27,6 +27,7 @@ public class Game extends JPanel implements ActionListener {
|
|||
// colors I'll be using
|
||||
public static Color backgroundGreen = new Color(45, 73, 45);
|
||||
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);
|
||||
|
||||
// text hover animation and if it should hover down or up
|
||||
|
|
|
|||
|
|
@ -20,27 +20,32 @@ public class Update {
|
|||
|
||||
static void paint(Game m, Graphics g) {
|
||||
if (m.scene.equals("main_menu")) {
|
||||
g.setColor(m.lightGreen);
|
||||
g.setFont(m.gameFont.deriveFont(75f));
|
||||
if (m.chosenOption == 1) {
|
||||
g.drawString("play game", 260, 390);
|
||||
g.setColor(m.darkerGreen);
|
||||
g.drawString("exit game", 265, 460);
|
||||
} else if (m.chosenOption == 2) {
|
||||
g.drawString("exit game", 265, 460);
|
||||
g.setColor(m.darkerGreen);
|
||||
g.drawString("play game", 260, 390);
|
||||
} else {
|
||||
m.chosenOption = 1;
|
||||
}
|
||||
g.drawString("by dvorakmortonxd", 135, 290+m.textHoverAmount/4);
|
||||
g.setFont(m.gameFont.deriveFont(150f));
|
||||
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();
|
||||
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.setFont(m.gameFont.deriveFont(75f));
|
||||
if (m.chosenOption == 1) {
|
||||
g.drawString("play game", 260, 390);
|
||||
g.setColor(m.darkerGreen);
|
||||
g.drawString("exit game", 265, 460);
|
||||
} else if (m.chosenOption == 2) {
|
||||
g.drawString("exit game", 265, 460);
|
||||
g.setColor(m.darkerGreen);
|
||||
g.drawString("play game", 260, 390);
|
||||
} else {
|
||||
m.chosenOption = 1;
|
||||
}
|
||||
g.drawString("by dvorakmortonxd", 135, 290+m.textHoverAmount/4);
|
||||
g.setFont(m.gameFont.deriveFont(150f));
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue