2015-10-04 45 views

回答

1

当您使用AssetManager你应该表现出一些动画/加载标签,同时调用更新方法,因此它应该看起来像:

AssetManager manager = new AssetManager(); 
    manager.load("small.png", Texture.class); 

    //in render method 
    if(!manager.update()) 
    { 
     renderAnimation(); 
    } 
    else 
    { 
     startRegularGame(); 
    } 

更新方法时,所有的资源都装入返回true。


如果您正在使用Screen类你可以创建一个只经理updateing在渲染方法的特殊画面。当资源被加载时,只需设置一个游戏屏幕。