Hi all,
I've been having some trouble reading text files in my game, the code I'm using works fine when run in the editor but when I export it I get this error:
java.lang.RuntimeException - (JavaScript) ReferenceError: jl_NoClassDefFoundError
And here is the code I use to load a file:
Does anyone have experience reading from files after the switch to javascript/HTML5?
1 2 | InputStream input = getClass().getResourceAsStream( "levels/" + filename + ".txt" ); Scanner reader = new Scanner(input); |