0

当我尝试将精灵添加到我的场景(在 AndEngine 中)并在我的手机中运行该应用程序时,它只显示一个大矩形。我的代码是:

myTex = new BitmapTextureAtlas(512, 512, TextureOptions.DEFAULT);
myTexRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(myTex, this, "menu_spr.jpg", 0, 0);

我的图像尺寸为 424*424。我尝试同时使用TextureOptions.DEFAULTTextureOptions.BILINEAR。我的形象是不是该死?谢谢。

4

1 回答 1

2

您没有说您使用的是哪个版本的 AndEngine,也没有显示所有代码……您是否正在加载 TextureAtlas?就像是

myTexRegion.load();
于 2012-12-26T14:27:08.317 回答