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

errorlibgdx

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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -