Hi,
I'm following an old tutorial for map creation and I keep getting an error in the following section of code. I have imported greenfoot.Color and java.awt.Color and it doesn't fix the issue with either. Any help would be greatly appreciated!!
Here is the section of code.
public void makeMap() {
for(int y = 0; y < MAPIMGHEIGHT; y++) {
for(int x = 0; x < MAPIMGWIDTH; x++) {
int colorRGB = mapImg.getColorAt(x, y).getRGB();
if(colorRBG == Color.BLACK.getRGB()) {
int mapX = x * PLATFORMWIDTH + PLATFORMWIDTH / 2;
int mapY = y * PLATFORMHEIGHT + PLATFORMHEIGHT / 2;
thePlatforms.add(new Platform(mapX, mapY));
}
}
}
}
