无法为AndEngine找到BlackPawnTextureBuilder

时间:2014-09-05 15:49:40

标签: android opengl-es textures andengine

我试图实现this Parallax Background here,但我无法在任何地方找到BlackPawnTextureBuilder文件!我甚至没有要导入的org.anddev包。我觉得它与缺少的OpenGL库有关,但我可能错了。

我还在网上找到了this class,我试图使用它,但它会引发大量错误。

在我的视差背景场景中,除了这部分我没有错误:

 try {
             texture.build(new BlackPawnTextureBuilder(0));
     } catch (TextureAtlasSourcePackingException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
     }

会引发BlackPawnTextureBuilder cannot be resolved to a typeTextureAtlasSourcePackingException cannot be resolved to a type错误。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我认为BlackPawnTextureBuilder已弃用[无法找到]尝试使用BlackPawnTextureAtlasBuilder