package me.hammerle.snuviengine; import me.hammerle.snuviengine.game.Game; public class Main { public static void main(String[] args) { Game game = new Game(); game.run(); //for(int i = 0; i < 736; i++) //{ // System.out.println("public static final TexturedTile OUT_" + i + " = register(" + i + ", new TexturedTile(\"out" + i + ".png\"));"); //} /* try { BufferedImage image = ImageIO.read(new File("tileset-blackvolution.png")); int w = image.getWidth(); int h = image.getHeight(); int counter = 0; for(int iy = 0; iy < h; iy += 16) { for(int ix = 0; ix < w; ix += 16) { BufferedImage out = new BufferedImage(16, 16, 2); for(int x = 0; x < 16; x++) { for(int y = 0; y < 16; y++) { out.setRGB(x, y, image.getRGB(x + ix, y + iy)); } } ImageIO.write(out, "png", new File("images/out" + counter + ".png")); counter++; } } } catch(Exception ex) { ex.printStackTrace(); }*/ } }