diff --git a/README.md b/README.md index 6186770..7b755b9 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,15 @@ # Retro Game ## A simple retro-style game built with Java and Swing. +# Game preview: - +![preview.png](src/main/resources/preview.png) -## credits +## credits for the assets so basically I made a zero-asset policy for this project except for the font,
which I got from [openfont.org](https://openfont.org/), the font's name is "**Jacquard 12**" :)
also I took some inspiration from these pinterest pages (I will list every single one):
[Retro Game Titles by "cuilong li"](https://www.pinterest.com/pin/902408844107127097/)
-[SHOVEL KNIGHT GameBoy by "PixelJoint"](https://www.pinterest.com/pin/902408844107127145) \ No newline at end of file +[SHOVEL KNIGHT GameBoy by "PixelJoint"](https://www.pinterest.com/pin/902408844107127145) + + \ No newline at end of file diff --git a/src/main/java/dev/dvorakmortonxd/update.java b/src/main/java/dev/dvorakmortonxd/update.java index ad9abce..b9942ed 100644 --- a/src/main/java/dev/dvorakmortonxd/update.java +++ b/src/main/java/dev/dvorakmortonxd/update.java @@ -20,27 +20,27 @@ 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.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(); } } } diff --git a/src/main/resources/preview.png b/src/main/resources/preview.png new file mode 100644 index 0000000..af9168e Binary files /dev/null and b/src/main/resources/preview.png differ