use of com.badlogic.ashley.core.Entity in project Catacomb-Snatch by Catacomb-Snatch.
the class Entities method createBaseTile.
private static Entity createBaseTile(Level level, int x, int y, Color color, boolean isWall) {
x *= Tiles.SIZE;
y *= Tiles.SIZE;
final Entity tile = createWithPosition(level, x, y);
tile.add(level.createComponent(MiniMapObject.class).setColor(color));
if (isWall) {
tile.add(new BoundingBox().set(x, y, Tiles.SIZE));
}
return tile;
}
Aggregations