Esempio n. 1
0
  @Override
  public void start() {
    bg1 = new Background(0, 0);
    bg2 = new Background(2160, 0);

    robot = new Robot();

    // Initialize tiles
    try {
      System.out.println("Loading map");
      loadMap("data/map1.txt");
    } catch (IOException e) {
      e.printStackTrace();
    }
    /*
     * for(int i = 0; i < 200; i++) { Tile t2 = new Tile(i, 11, 2); Tile t1
     * = new Tile(i, 10, 1); tilearray.add(t2); tilearray.add(t1); }
     */

    hb = new Heliboy(340, 360);
    hb2 = new Heliboy(700, 360);

    Thread thread = new Thread(this);
    thread.start();
  }
Esempio n. 2
0
  @Override
  public void start() {
    bg1 = new Background(0, 0);
    bg2 = new Background(2160, 0);
    robot = new Robot();
    // Initialize Tiles
    try {
      loadMap("data/map1.txt");
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    hb = new Heliboy(340, 360);
    hb2 = new Heliboy(700, 360);

    Thread thread = new Thread(this);
    thread.start();
  }