0
我使用this tutorial開始使用Overlap2D。如何在overlap2d中使用ResourceManager加載資產?
不幸的是,他們已經從DefaultAssetManager
切換到ResourceManager
而無需更新教程。
這是使用DefaultAssetManager
的代碼。
// Initializing asset manager
assetManager = new ResourceManager();
// providing the list of sprite animations which is one in this case, to avoid directory listing coding
assetManager.spriteAnimationNames = new String[1];
assetManager.spriteAnimationNames[0] = "bird";
// loading assets into memory
assetManager.loadData();
有沒有人有更新的教程或知道如何解決這個錯誤?
assetManager.initAllResources();將加載紋理。 assetManager.spriteAnimationNames不需要... – Benjamin 2015-02-09 20:26:55