Main.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package me.hammerle.snuviengine;
  2. import me.hammerle.snuviengine.game.Game;
  3. public class Main
  4. {
  5. public static void main(String[] args)
  6. {
  7. Game game = new Game();
  8. game.run();
  9. //for(int i = 0; i < 736; i++)
  10. //{
  11. // System.out.println("public static final TexturedTile OUT_" + i + " = register(" + i + ", new TexturedTile(\"out" + i + ".png\"));");
  12. //}
  13. /*
  14. try
  15. {
  16. BufferedImage image = ImageIO.read(new File("tileset-blackvolution.png"));
  17. int w = image.getWidth();
  18. int h = image.getHeight();
  19. int counter = 0;
  20. for(int iy = 0; iy < h; iy += 16)
  21. {
  22. for(int ix = 0; ix < w; ix += 16)
  23. {
  24. BufferedImage out = new BufferedImage(16, 16, 2);
  25. for(int x = 0; x < 16; x++)
  26. {
  27. for(int y = 0; y < 16; y++)
  28. {
  29. out.setRGB(x, y, image.getRGB(x + ix, y + iy));
  30. }
  31. }
  32. ImageIO.write(out, "png", new File("images/out" + counter + ".png"));
  33. counter++;
  34. }
  35. }
  36. }
  37. catch(Exception ex)
  38. {
  39. ex.printStackTrace();
  40. }*/
  41. }
  42. }