yeah that was the idea I had in mind but it throws a lot of exceptions.
1 2 3 4 5 6
| java.lang.NullPointerException at org.TEKGames.World.TiledWorld.LoadWorldFromImage(TiledWorld.java:82) at com.test.Game.init(Game.java:21) at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:433) at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:357) at com.test.Game.main(Game.java:40) |
It spams that in the console
but for some reason still renders the world
btw I am also using lwjgl and slick2d
and it also says that I need to cast
constructor.newInstance() to tile