What is wrong so far?! I have tried different ways to solve this, nothing works...?!?!?!
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;
private void drawScene(){
for (int x = 0; x < WIDTH; x++) {
for (int y = 0; y < HEIGHT; y++) {
setCellColor(x, y, Color.LIGHTPINK);
//public void draw(Game game){
//
// game.draw(this);
//
// }
}
}
}
private void createGame() {
Snake snake = new Snake(WIDTH/2, HEIGHT / 2);
snake.draw(this);
drawScene();
}
@Override public void initialize(){
setScreenSize(WIDTH, HEIGHT);
createGame();
}
}