1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
for (int nbTileHeight = Map.NB_TILE_AXE_Y - 1; nbTileHeight >= 0; nbTileHeight--) {
for (int nbTileWidth = Map.NB_TILE_AXE_X - 1; nbTileWidth >= 0; nbTileWidth--) {
Tile tile = Map.getTile(nbTileWidth, nbTileHeight);
tile.draw(spriteBatch, 0);
}
}
EntityManager.act(delta);
EntityManager.draw(spriteBatch);
for (int nbTileHeight = Map.NB_TILE_AXE_Y - 1; nbTileHeight >= 0; nbTileHeight--) {
for (int nbTileWidth = Map.NB_TILE_AXE_X - 1; nbTileWidth >= 0; nbTileWidth--) {
Tile tile = Map.getTile(nbTileWidth, nbTileHeight);
tile.draw(spriteBatch, 1);
}
}
for (int nbTileHeight = Map.NB_TILE_AXE_Y - 1; nbTileHeight >= 0; nbTileHeight--) {
for (int nbTileWidth = Map.NB_TILE_AXE_X - 1; nbTileWidth >= 0; nbTileWidth--) {
Tile tile = Map.getTile(nbTileWidth, nbTileHeight);
tile.draw(spriteBatch, 2);
}
}
for (int nbTileHeight = Map.NB_TILE_AXE_Y - 1; nbTileHeight >= 0; nbTileHeight--) {
for (int nbTileWidth = Map.NB_TILE_AXE_X - 1; nbTileWidth >= 0; nbTileWidth--) {
Tile tile = Map.getTile(nbTileWidth, nbTileHeight);
tile.draw(spriteBatch, 3);
}
} |
Partager