Make a new thread about that, and post the code. I'll try to help you then.
Type: Posts; User: elamre
Make a new thread about that, and post the code. I'll try to help you then.
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;
public class MapLoader {
File file;
public MapLoader() {
/* My map */
I like to learn from examples, this is a nice example on how to use split, try to play with just a split function and an integer.parseint. Next add so it will read line by line:
Java String Split...
I see,
That exception means that you are trying to acces an element of an array which doesnt exist. Say you've got an array which exists out of 5 elements(which is the max boundary as well), and you...
i would not see why that would not work? what's your output? and what were you expecting?
What is level1.add(,,) supposed to do?
You could do that, yes. But you also could add a letter in front of every line. Then you would end up with something like this:
T1 X2300 Y323
T4 X2003 Y33
Or you could use the spaces as...
By adding an extra number:
1 10 10
1 40 10
2 30 10
where the first int could be the object type, the second the x, and the third the y. You could add as much as you'd like. You could even...