Start of world generator

This commit is contained in:
Ondřej Hruška
2014-04-24 02:41:38 +02:00
parent 147f499e62
commit 69f55dcc12
16 changed files with 592 additions and 30 deletions
@@ -59,11 +59,11 @@ public class TiledRect extends RectProxy {
public Rect tile(int x, int y)
{
if (x >= tilesX || x < 0) {
throw new IndexOutOfBoundsException("X coordinate out fo range.");
throw new IndexOutOfBoundsException("X coordinate out fo range: "+x);
}
if (y >= tilesY || y < 0) {
throw new IndexOutOfBoundsException("Y coordinate out of range.");
throw new IndexOutOfBoundsException("Y coordinate out of range: "+y);
}
return aTile.move(perCol.mul(x), perRow.mul(y));