I am struggling to find the bugs inside the method draw.Can anybody help me?
Is the logic behind the implementation wrong or is it just a little bug that i do not know how to find?
Thanks in advance!
package com.codegym.games.snake;
import com.codegym.engine.cell.*;
public class Apple extends GameObject {
int x;
int y;
public boolean isAlive = true;
private static final String APPLE_SIGN = "\uD83C\uDF4E";
public Apple(int x,int y){
super(x,y);
this.x = x;
this.y = y;
}
public void draw(Game game){
game.setCellValueEx(x,y,Color.NONE,APPLE_SIGN, Color.GREEN,75);
}
}