Hi, I'm making a game with random world generation. Everything is running smothly except when it comes down to drawing the blocks on screen. It has a for loop to loop through all the different blocks but it just skips the for loop!
Here's the draw method that should draw all the blocks:
/** * Draw all the block in the world on the screen. * * @param Graphics2D g */ public void draw(Graphics2D g) { System.out.println("Drawing..."); for (int var0 = 0; var0 < world.length; var0++) { for (int var1 = 0; var1 < world[var0].length; var1++) { System.out.println("In nested for loop!"); world[var0][var1].draw(this, g, var0, (size.height - var1)); } } System.out.println("Finished drawing!"); }
I have seriously no idea what the problem is!
Please help me!