diff --git a/build.xml b/build.xml index ff919f1..122d2d5 100644 --- a/build.xml +++ b/build.xml @@ -50,6 +50,12 @@ + + + + + diff --git a/src/micropolisj/build_tool/MakeTiles.java b/src/micropolisj/build_tool/MakeTiles.java index 6e056f9..a113ac9 100644 --- a/src/micropolisj/build_tool/MakeTiles.java +++ b/src/micropolisj/build_tool/MakeTiles.java @@ -16,11 +16,19 @@ public class MakeTiles static final Charset UTF8 = Charset.forName("UTF-8"); static final int NTILES = 960; - static final int TILE_SIZE = 16; + static int TILE_SIZE = 16; public static void main(String [] args) throws Exception { + if (args.length != 2) { + throw new Exception("Wrong number of arguments"); + } + + if (System.getProperty("tile_size") != null) { + TILE_SIZE = Integer.parseInt(System.getProperty("tile_size")); + } + File recipeFile = new File(args[0]); File outputFile = new File(args[1]);