@Override
public void onTurn(int turnDelay){
snake.move(apple);
if(apple.isAlive == false){
score += 5;
setScore(score);
turnDelay -= 10;
setTurnTimer(turnDelay);
createNewApple();
}
if(!snake.isAlive){
gameOver();
}
if(snake.getLength() > GOAL){
win();
}
drawScene();
//snake.move(apple);
}
how to do
Under discussion
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet