1
即時使用GLES2中的x,y偏移量。當我創建我的區域:在andengine中的黑色屏幕,當我嘗試使用TextureRegion
BitmapTextureAtlasTextureRegionFactory.createFromAsset(Atlas3,this,「columna.png」,0,0);
一切工作正常。地圖集是128x256,紋理是100x256左右,所以我想使用x偏移量,否則我的碰撞與box2d混淆。問題是,當我將偏移量更改爲0,0以外的任何值時,我都會出現黑屏。
任何提示?