Bladeren bron

Update to match engine API changes

Tankernn 7 jaren geleden
bovenliggende
commit
9cebfd8401
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      src/eu/tankernn/pong/Pong.java

+ 2 - 2
src/eu/tankernn/pong/Pong.java

@@ -32,11 +32,11 @@ public class Pong extends TankernnGame {
 	public Pong() {
 		super("Pong");
 		try {
-			FontFamily fontType = new FontFamily(loader.loadTexture("arial.png"), new InternalFile("arial.fnt"));
+			FontFamily fontType = new FontFamily(loader.loadTextureAtlas(new InternalFile("arial.png")), new InternalFile("arial.fnt"));
 			Font font = new Font(fontType, 2);
 			scoreText = new GUIText("0  0", font, new Vector2f(-0.5f, 0), 2, true);
 			messageText = new GUIText("", font, new Vector2f(-0.5f, 0.5f), 2, true);
-			white = loader.loadTexture("white.png");
+			white = loader.loadTexture(new InternalFile("white.png"));
 		} catch (FileNotFoundException e1) {
 			e1.printStackTrace();
 		}