As far as i can see i am using the draw method on the created apple ..........
package com.codegym.games.snake;
import com.codegym.engine.cell.*;
public class SnakeGame extends Game {
public static final int WIDTH = 15,HEIGHT = 15;
@Override
public void initialize(){
setScreenSize(WIDTH,HEIGHT);
createGame();
}
private void createGame(){
Apple apple = new Apple(7,7);
apple.draw(this);
drawScene();
}
private void drawScene(){
for (int i = 0; i < WIDTH; i++) {
for (int y = 0; y < HEIGHT; y++) {
setCellColor(i, y, Color.PURPLE);
}
}
}
}