Honestly, I'm not sure I understand what is being asked here: In the drawScene() method, call the setCellColor(int, int, Color) method for each cell of the playing field with the following arguments: x and y coordinates of the cell and any color (for example, Color.BLACK).
I thought just had to call the drawScene method and pass integers and the color to the method...but it's failing validation, so I don't really know what it's asking for then?
package com.codegym.games.moonlander;
import com.codegym.engine.cell.*;
/**
* Created by ChandaB on 9/20/2019.
*/
public class MoonLanderGame extends Game {
public static final int WIDTH = 64;
public static final int HEIGHT = 64;
public static final int x = 10;
public static final int y = 50;
public static void main(String[] args) {
}
@Override
public void initialize() {
setScreenSize(WIDTH, HEIGHT);
createGame();
}
private void createGame(){
drawScene();
}
private void drawScene(){
setCellColor(x, y, Color.GREY);
}
}