Hi Whenever I use this code it produces a triangle in the upper right corner of my android device, anything I'm missing? thanks.
Do I have to add anything special in my onCreateScene etc.
My onCreateResources:
@Override
public void onCreateResources() {
BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/");
this.mBitmapTextureAtlas = new BitmapTextureAtlas(
this.getTextureManager(), 64, 256,
TextureOptions.NEAREST_PREMULTIPLYALPHA);
this.mPenguinTexture = BitmapTextureAtlasTextureRegionFactory
.createTiledFromAsset(this.mBitmapTextureAtlas, this,
"penguintiled.png", 0, 0, 1, 2); // 64x32
BitmapTextureAtlas lolz = new BitmapTextureAtlas(
this.getTextureManager(), 128, 128, TextureOptions.NEAREST_PREMULTIPLYALPHA);
mIcicleTextureRegion = BitmapTextureAtlasTextureRegionFactory
.createFromAsset(lolz, this, "icicle.png", 0, 0);
mTwoIcicleTextureRegion = BitmapTextureAtlasTextureRegionFactory
.createFromAsset(lolz, this, "twoice.png", 32, 32);
this.mAutoParallaxBackgroundTexture = new BitmapTextureAtlas(
this.getTextureManager(), 2048, 2048);
this.mParallaxLayerFront = BitmapTextureAtlasTextureRegionFactory
.createFromAsset(this.mAutoParallaxBackgroundTexture, this,
"frontbg.png", 0, 0);
this.mParallaxLayerBack = BitmapTextureAtlasTextureRegionFactory
.createFromAsset(this.mAutoParallaxBackgroundTexture, this,
"mountains.png", 0, 188);
this.mParallaxLayerMid = BitmapTextureAtlasTextureRegionFactory
.createFromAsset(this.mAutoParallaxBackgroundTexture, this,
"cloud.png", 0, 669);
this.mCoinAtlas = new BitmapTextureAtlas(
this.getTextureManager(), 128, 32, TextureOptions.BILINEAR);
this.mCoinTex = BitmapTextureAtlasTextureRegionFactory
.createTiledFromAsset(mCoinAtlas, this, "coinsheet.png", 0, 0, 4, 1);
this.mAutoParallaxBackgroundTexture.load();
this.mCoinAtlas.load();
this.mBitmapTextureAtlas.load();
lolz.load();
mFontTexture = new BitmapTextureAtlas(this.getTextureManager(), 1024, 1024, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
mFont = FontFactory.createFromAsset(this.getFontManager(), this.getTextureManager(), 256, 256, this.getAssets(),
"fnt/lol.ttf", 46, true, android.graphics.Color.BLACK);
getEngine().getTextureManager().loadTexture(mFontTexture);
mFont.load();
try
{
beep = SoundFactory.createSoundFromAsset(mEngine.getSoundManager(), this,"sfx/coinbeep.mp3");
}
catch (IOException e)
{
e.printStackTrace();
}
}