libgdx - com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: (Internal) -
i developing game using libgdx, when run game pc using desktop launcher have no errors , works perfectly. when connect phone , try execute directly on it, error
it's device couldn't find files inside assets folder. did have change directory paths? "hero.pack" loaded libgdx
public class playscreen extends fatherscreen {
private hero player; private textureatlas heroatlas; public playscreen (mygdxgame game, string levelname, music music){ super(game, levelname, music); heroatlas = new textureatlas("hero.pack"); ...
}
accept
@m.antkowicz hero.pack code:
hero.png format: rgba8888 filter: nearest,nearest repeat: none hero rotate: false xy: 1, 1 size: 705, 49 orig: 705, 49 offset: 0, 0 index: -1
it's simple code of animation of hero character. @manabreak hero.pack file in android/assets folder on pc. said before have no problem running game directly on pc! maybe have copy assets folder on phone directly?
Comments
Post a Comment