Exemple #1
0
 public void draw(
     GLEx g, int x, int y, int sx, int sy, int width, int height, int l, boolean lineByLine) {
   TMXLayer layer = (TMXLayer) layers.get(l);
   for (int ty = 0; ty < height; ty++) {
     layer.draw(g, x, y, sx, sy, width, ty, lineByLine, tileWidth, tileHeight);
   }
 }
Exemple #2
0
 public void draw(
     GLEx g, int x, int y, int sx, int sy, int width, int height, boolean lineByLine) {
   for (int ty = 0; ty < height; ty++) {
     for (int i = 0; i < layers.size(); i++) {
       TMXLayer layer = (TMXLayer) layers.get(i);
       layer.draw(g, x, y, sx, sy, width, ty, lineByLine, tileWidth, tileHeight);
     }
   }
 }