moving to the exact position of eposx and eposy will give you a score
g.setColor(Color.RED);//Food
g.fillRect(eposx,eposy,10,10);//Food Position
if the head of the snake goes to the exact...
Type: Posts; User: genesis004
moving to the exact position of eposx and eposy will give you a score
g.setColor(Color.RED);//Food
g.fillRect(eposx,eposy,10,10);//Food Position
if the head of the snake goes to the exact...
Here's how it works the Black oval is the head of the snake, it's followed by one green oval which is followed by one green oval. These green oval's are the body/tail of the snake. The black...
My problem is the body of the snake, I need it to follow the snakes head, once the head of the snake moves on the position of the body, game-over. The body goes to every previous position of the head...
Hi, I'm trying to create a snake game, but I can't make the body/tail to follow correctly at the back of the snake's head.
Honestly, I don't know what to do here..
here's my code
import...