Package com.mojang.ld22.entity

Examples of com.mojang.ld22.entity.Entity.intersects()


      for (int x = xt0; x <= xt1; x++) {
        if (x < 0 || y < 0 || x >= w || y >= h) continue;
        List<Entity> entities = entitiesInTiles[x + y * this.w];
        for (int i = 0; i < entities.size(); i++) {
          Entity e = entities.get(i);
          if (e.intersects(x0, y0, x1, y1)) result.add(e);
        }
      }
    }
    return result;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.