// This class loads resources such as sound,text,image etc.
 // This method loads one .gif image
 @Override
 public void onLoadResources() {
   // Set the path of the resource under the asset folder
   BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/");
   // Create one Texture Atlas
   this.atlas = new BitmapTextureAtlas(512, 256);
   this.mbuilableBitmapTextureAtlas = new BuildableBitmapTextureAtlas(512, 256);
   this.mTiledTextureRegion =
       BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(
           atlas, this, "banana_tiled.png", 0, 0, 4, 2);
   // Load the atlas
   myEngine.getTextureManager().loadTextures(atlas);
 }
Beispiel #2
0
 public void start() {
   reset();
   mEngine.registerUpdateHandler(new UpdateHandler());
 }