Exemplo n.º 1
0
  public Render getRender() {
    Render r = new Render();
    r.x = x;
    r.y = y;

    if (image == null) {
      image = Util.loadImage("lib/pipe-" + orientation + ".png");
    }
    r.image = image;

    return r;
  }