Fixing ü via utf8-zeichentabelle.de. Also enabled anti aliasing for fonts
This commit is contained in:
parent
e75f99d71b
commit
189c526b67
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue