Describe the bug
Windows specific hardcoded paths causes IO Exceptions during runtime.
java.io.FileNotFoundException: /path/to/voodoo2d/src\main\resources\maps\example.tmx
Probable cause is hardcoded path here:
src/main/java/com/github/crembluray/voodoo2d/game/MapTree.java
javax.imageio.IIOException: Can't read input file!
Probable cause is hardcoded path here:
src/main/java/com/github/crembluray/voodoo2d/engine/mapping/Layer.java
Changing the paths helped to run the demo.
To Reproduce
Steps to reproduce the behavior:
Use any POSIX OS.
Switch to 83c745.
Add Maven exec plugin to pom.xml and specify com.github.crembluray.voodoo2d.game.Main as main class:
Thanks for catching this! I've been meaning to change this, I used the hardcoded path for testing and I forgot to remove it. Bad commit practice on my part!
Describe the bug Windows specific hardcoded paths causes IO Exceptions during runtime.
java.io.FileNotFoundException: /path/to/voodoo2d/src\main\resources\maps\example.tmx
Probable cause is hardcoded path here:src/main/java/com/github/crembluray/voodoo2d/game/MapTree.java
javax.imageio.IIOException: Can't read input file!
Probable cause is hardcoded path here:src/main/java/com/github/crembluray/voodoo2d/engine/mapping/Layer.java
Changing the paths helped to run the demo.
To Reproduce Steps to reproduce the behavior:
83c745
.com.github.crembluray.voodoo2d.game.Main
as main class:$ mvn clean install exec:java
Expected behavior Demo shouldn't crash.
Desktop (please complete the following information):