well where do i start i read a few books etc look on sun website got info and etc but ive got like 2 bugs in this and i dnt know how to solve them ive tried everything.
so heres the code its probably all wrong anyways:-
public class DarkRealmsCanvas
extends Canvas
implements Runnable {
public static void main (strings [] args);
private LayerManager mLayerManager;
public DarkRealmsCanvas() throws IOException {
super (true);
TiledLayer createTile() {
Image image = null;
try { image = Image.createImage ("/tile1.bmp"); }
catch (IOException ioe) {return null;
};
TiledLayer tiledLayer = new TiledLayer (10, 10, image, 16,16);
int [ ] map = {
1, 2, 3, 0, 1, 0, 1, 2, 2, 3,
1, 2, 3, 0, 1, 0, 1, 2, 2, 2,
1, 2, 3, 2, 1, 0, 1, 2, 2, 3,
0, 2, 3, 0, 1, 0, 1, 2, 3, 1,
1, 2, 3, 0, 1, 0, 1, 2, 2, 3,
3, 2, 3, 1, 1, 0, 1, 2, 1, 3,
1, 2, 3, 0, 1, 0, 1, 2, 2, 3,
1, 2, 3, 0, 1, 0, 1, 2, 2, 3,
2, 2, 3, 3, 1, 0, 1, 2, 2, 3,
1, 2, 3, 0, 1, 0, 1, 2, 2, 0
};
for (int i = 0; i < map. length; i++); {
int column = i % 10;
int row = (i - column) /10;
tiledLayer.selectCell (column, row, map[ i ] );
};
return tiledLayer;
}
//so let me know wot you think i should do plz.
)
platform 