我见过很多这样的例子,例如:
atlas = new TextureAtlas("skins/userInterface.pack");
white = new BitmapFont(Gdx.files.internal("font/white.fnt"));
我在教程中看到了这个方法,但是也可以按照这种方式进行操作:
atlas = new TextureAtlas(Gdx.files.internal("skins/userInterface.pack"));
white = new BitmapFont("font/white.fnt");
什么时候应该使用Gdx.files.internal,而不是直接使用相对于assets文件夹的路径?