@Override public void onLoadResources() { mTexture = new Texture(64, 64, TextureOptions.BILINEAR_PREMULTIPLYALPHA); TextureRegionFactory.setAssetBasePath("gfx/"); mBoxFaceTextureRegion = TextureRegionFactory.createTiledFromAsset(mTexture, this, "face_box_tiled.png", 0, 0, 2, 1); mCircleFaceTextureRegion = TextureRegionFactory.createTiledFromAsset( mTexture, this, "face_circle_tiled.png", 0, 32, 2, 1); getEngine().getTextureManager().loadTexture(mTexture); enableAccelerometerSensor(this); }
@Override public void onLoadResources() { this.mTexture = new Texture(64, 64, TextureOptions.BILINEAR_PREMULTIPLYALPHA); TextureRegionFactory.setAssetBasePath("gfx/"); this.mBoxFaceTextureRegion = TextureRegionFactory.createTiledFromAsset( this.mTexture, this, "face_box_tiled.png", 0, 0, 2, 1); // 64x32 this.mCircleFaceTextureRegion = TextureRegionFactory.createTiledFromAsset( this.mTexture, this, "face_circle_tiled.png", 0, 32, 2, 1); // 64x32 this.mEngine.getTextureManager().loadTexture(this.mTexture); }
public List<Texture> loadRessources(BaseGameActivity parent) { TextureRegionFactory.setAssetBasePath("gfx/"); this.mLevelTexture = new Texture(512, 512, TextureOptions.REPEATING_BILINEAR_PREMULTIPLYALPHA); this.mLevelTextureRegion = TextureRegionFactory.createFromAsset( this.mLevelTexture, parent, "levelfirststrike.png", 0, 0); this.textureList.add(mLevelTexture); this.mBoxTexture = new Texture(32, 32, TextureOptions.BILINEAR_PREMULTIPLYALPHA); this.mBoxTextureRegion = TextureRegionFactory.createFromAsset(this.mBoxTexture, parent, "box.png", 0, 0); this.textureList.add(mBoxTexture); return this.textureList; }