diff --git a/src/de/teamteamteam/spacescooter/screen/GameOverScreen.java b/src/de/teamteamteam/spacescooter/screen/GameOverScreen.java index 1422c9f..521dbc7 100644 --- a/src/de/teamteamteam/spacescooter/screen/GameOverScreen.java +++ b/src/de/teamteamteam/spacescooter/screen/GameOverScreen.java @@ -5,6 +5,7 @@ import java.awt.Font; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.image.BufferedImage; +import java.awt.RenderingHints; import de.teamteamteam.spacescooter.control.Keyboard; import de.teamteamteam.spacescooter.entity.Player; @@ -39,6 +40,8 @@ public class GameOverScreen extends Screen { @Override protected void paint(Graphics2D g) { + g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, + RenderingHints.VALUE_ANTIALIAS_ON); g.drawImage(this.img, 0, 0, null); this.entityPaintIterator.reset(); while (this.entityPaintIterator.hasNext()) { @@ -50,7 +53,7 @@ public class GameOverScreen extends Screen { g.setFont(new Font("Monospace", 0, 20)); g.setColor(new Color(0, 0, 0)); g.drawString("Wiederholen", GameConfig.windowWidth/2-60, 332); - g.drawString("Hauptmenü", GameConfig.windowWidth/2-60, 432); + g.drawString("Hauptmen\u00fc", GameConfig.windowWidth/2-60, 432); } @Override diff --git a/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java b/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java index 7ee60d9..5ba5dfa 100644 --- a/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java +++ b/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java @@ -5,6 +5,7 @@ import java.awt.Font; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.image.BufferedImage; +import java.awt.RenderingHints; import de.teamteamteam.spacescooter.control.Keyboard; import de.teamteamteam.spacescooter.entity.Player; @@ -39,6 +40,8 @@ public class GamePausedScreen extends Screen { @Override protected void paint(Graphics2D g) { + g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, + RenderingHints.VALUE_ANTIALIAS_ON); g.drawImage(this.img, 0, 0, null); this.entityPaintIterator.reset(); while (this.entityPaintIterator.hasNext()) { @@ -50,7 +53,7 @@ public class GamePausedScreen extends Screen { g.setFont(new Font("Monospace", 0, 20)); g.setColor(new Color(0, 0, 0)); g.drawString("Weiter", GameConfig.windowWidth/2-30, 332); - g.drawString("Hauptmenü", GameConfig.windowWidth/2-50, 432); + g.drawString("Hauptmen\u00fc", GameConfig.windowWidth/2-50, 432); } @Override diff --git a/src/de/teamteamteam/spacescooter/screen/LoadingScreen.java b/src/de/teamteamteam/spacescooter/screen/LoadingScreen.java index 71143b2..0cfd28a 100644 --- a/src/de/teamteamteam/spacescooter/screen/LoadingScreen.java +++ b/src/de/teamteamteam/spacescooter/screen/LoadingScreen.java @@ -3,6 +3,7 @@ package de.teamteamteam.spacescooter.screen; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; +import java.awt.RenderingHints; import de.teamteamteam.spacescooter.utility.GameConfig; /** @@ -36,6 +37,8 @@ public class LoadingScreen extends Screen { @Override protected void paint(Graphics2D g) { + g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, + RenderingHints.VALUE_ANTIALIAS_ON); g.setColor(new Color(0,0,120)); g.fillRect(0, 0, GameConfig.windowWidth, GameConfig.windowHeight); g.setColor(new Color(255,255,255)); diff --git a/src/de/teamteamteam/spacescooter/screen/MainMenuScreen.java b/src/de/teamteamteam/spacescooter/screen/MainMenuScreen.java index f06075f..e4de836 100644 --- a/src/de/teamteamteam/spacescooter/screen/MainMenuScreen.java +++ b/src/de/teamteamteam/spacescooter/screen/MainMenuScreen.java @@ -4,6 +4,7 @@ import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.event.KeyEvent; +import java.awt.RenderingHints; import de.teamteamteam.spacescooter.background.StarBackground; import de.teamteamteam.spacescooter.control.Keyboard; @@ -39,6 +40,8 @@ public class MainMenuScreen extends Screen { @Override public void paint(Graphics2D g) { + g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, + RenderingHints.VALUE_ANTIALIAS_ON); this.entityPaintIterator.reset(); while (this.entityPaintIterator.hasNext()) { this.entityPaintIterator.next().paint(g);