私はAndengineを使用するのが初めてです..
次のコードを試しているときに、ファイルが見つからないという例外エラーが発生します。
public void onLoadResources() {
this.mTexture = new Texture(32, 32, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
this.mFaceTextureRegion = TextureRegionFactory.createFromAsset(this.mTexture, this, "gfx/face_box.png", 0, 0);
this.mEngine.getTextureManager().loadTexture(this.mTexture);
}
ほとんどの場合、このgfx/face_box.pngが原因です。
このエラーを修正するにはどうすればよいですか? ここで自分の画像を使用するにはどうすればよいですか。ギャラリー画像のパスを指定する必要がありますか? または、フォルダーにある任意の画像を使用できdrawable
ます。
どんな体も助けてくれますか?