Janfiderheld / Snake-That-MO

Projektarbeit im Fach "Mobile Systeme" von Niclas Muss & Jan-Philipp Töberg an der Technischen Hochschule Ostwestfalen-Lippe im WS18/19
Apache License 2.0
7 stars 0 forks source link

Access Images from coin-class #15

Closed Janfiderheld closed 5 years ago

Janfiderheld commented 6 years ago

In the coin class you can not use the images from the assets-folder. When using them, you get a NullPointerException. Currently there is a workaround where the images get accessed by the FirstLevelScreen and then sent as parameters

First Fix idea: Usage of Gdx.files.internal("") but it does not help

Maybe the problem comes from the package?!

Janfiderheld commented 5 years ago

the Refactoring of the assets (= adding folders) solved the problem and the hack could be deleted