How to reload the images when level comple(Andengine)
I am developing a game using andengine. i place this coding
//
pr开发者_运维知识库ivate TiledTextureRegion levelRegion;
int level;
//In onLoadResources()
this.mTexture = new Texture(2048, 512);
this.levelRegion=TextureRegionFactory.createFromAsset(this.mTexture, this,
"bg"+level +".png",0,0);
this.mEngine.getTextureManager().loadTexture(this.mTexture);
When level complete , i increased the level and i try call again onLoadResources(). I got error and screen in blank.. How to fix this problem .
精彩评论