我试图实现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 type
和TextureAtlasSourcePackingException cannot be resolved to a type
错误。
有什么想法吗?