Search:

Type: Posts; User: elamre

Search: Search took 0.10 seconds.

  1. Replies
    41
    Views
    2,952

    Re: Help with an object based level format

    Make a new thread about that, and post the code. I'll try to help you then.
  2. Replies
    41
    Views
    2,952

    Re: Help with an object based level format

    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 */
  3. Replies
    41
    Views
    2,952

    Re: Help with an object based level format

    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...
  4. Replies
    41
    Views
    2,952

    Re: Help with an object based level format

    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...
  5. Replies
    41
    Views
    2,952

    Re: Help with an object based level format

    i would not see why that would not work? what's your output? and what were you expecting?
  6. Replies
    41
    Views
    2,952

    Re: Help with an object based level format

    What is level1.add(,,) supposed to do?
  7. Replies
    41
    Views
    2,952

    Re: Help with an object based level format

    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...
  8. Replies
    41
    Views
    2,952

    Re: Help with an object based level format

    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...
Results 1 to 8 of 8