瀏覽代碼

Update to match engine API changes

Tankernn 7 年之前
父節點
當前提交
9cebfd8401
共有 1 個文件被更改,包括 2 次插入2 次删除
  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();
 		}