Improved Serpulo water edge generation

This commit is contained in:
Anuken
2021-09-28 17:20:20 -04:00
parent 7f415588f4
commit 71543f2ab2
3 changed files with 45 additions and 6 deletions

View File

@@ -62,6 +62,11 @@ public class Tile implements Position, QuadTreeObject, Displayable{
return Point2.pack(x, y);
}
/** @return this tile's position, packed to the world width - for use in width*height arrays. */
public int array(){
return x + y * world.tiles.width;
}
public byte relativeTo(Tile tile){
return relativeTo(tile.x, tile.y);
}