I have received 3 mistakes and I can't figure out what is wrong:
---> The drawScene() method must be called in the createGame() method.
---> The createGame() method must be called in the initialize() method.
---> n the drawScene() method, call the setCellColor(int, int, Color) method on each cell of the playing field with the following arguments: x and y coordinates and any color.
package com.codegym.games.snake;
import com.codegym.engine.cell.*;
public class SnakeGame extends Game {
public static final int WIDTH = 15;
public static final int HEIGHT = 15;
public void setScreenSize(int width, int height) {
}
private void drawScene(){
for (int x = 0; x < WIDTH; x++) {
for (int y = 0; y < HEIGHT; y++) {
setCellColor(x, y, Color.DARKSEAGREEN);
}
}
}
private void createGame(){
drawScene();
}
public void initialize() {
setScreenSize(WIDTH, HEIGHT);
createGame();
}
}