Sou a: Inici / Usuaris / jordifarrero / 2012-13 :: Entorns desenvolupament :: DAW2 Tarda / Codis exemple / Codi Java 5 - Load TiledTextureRegion

Codi Java 5 - Load TiledTextureRegion

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;
}