Open nnn1590 opened 4 years ago
If kirbyterrain.png
is in the current directory with map = new TiledMap("kirbymap.tmx",".");
, it will work properly
./gradlew distzip
cd $(mktemp -d Kirby-XXXXXX -p /tmp)
unzip "${OLDPWD}/build/distributions/Kirby.zip"
cd Kirby/lib
../bin/Kirby
https://github.com/nnn1590/KirbyGame-Java/blob/6cbd5a4f43497c2bd87ead1e9698d06895f48ad6/src/main/java/Kirby/KirbyGame.java#L544-L546
is almost the same.
./gradlew run
works properly.But
doesn't work.
Error log
``` ERROR:Resource not found: src/main/resources/kirbyterrain.png java.lang.RuntimeException: Resource not found: src/main/resources/kirbyterrain.png at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:69) at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:185) at org.newdawn.slick.Image.