Codi Java 5 - Load TiledTextureRegion

per Jordi Farrero darrera modificació 2020-03-25T14:52:35+01:00

public static TiledTextureRegion loadToSpriteMap(String tpath,int initial_posX_SpriteMap,int initial_posY_SpriteMap,int total_rows,int total_cols,BaseGameActivity oactivity)
{   
// Ponemos la relacion de imagenes de la animacion en el sprite map comun
TiledTextureRegion tTex  = TextureRegionFactory.createTiledFromAsset(game_commons.cSpriteMap , oactivity, tpath,initial_posX_SpriteMap, initial_posY_SpriteMap, total_rows, total_cols);    
return tTex;
}