I have a problem with my game. I have a map 1280x1280px . It is consisted of 40x40 tiles, so 1 tile is 32x32 pixels. The thing is that I can't scale this map to the actual screen size of my device. Is there any way to do that?
This is how I load the tmx file:
public Scene onLoadScene() {
// TODO Auto-generated method stub
this.mMainScene = new Scene(1);
try
{
final TMXLoader tmxLoader = new TMXLoader(this, this.mEngine.getTextureManager(),
TextureOptions.BILINEAR_PREMULTIPLYALPHA);
this.mTMXTiledMap = tmxLoader.loadFromAsset(this,"gfx/untitled.tmx");
//"gfx/0_fire_drill-lvl_01.tmx"
}
catch(final TMXLoadException tmxle)
{
Debug.e(tmxle);
}
for(TMXLayer tmxLayer : this.mTMXTiledMap.getTMXLayers())
{
this.mMainScene.getChild(0).attachChild(tmxLayer);
}
return this.mMainScene;
}
This is how the map loocks like: http://postimage.org/image/403w3dfnx/
The actions will happend only in the red area. Do I need to edin the map?
Thank you in advance!