i have written code to move a dot from on end of the lcd screen to the other end.
/*move dot across the creen with pixel increments of 10*/
for(x=10;x<120;x+=20)
{
Glcd_Dot(x,y,0);
Glcd_Dot(x,y,1);
Glcd_Fill(0);
delay_ms(100);
}
i have seen examples in C, but this is on a 128x64 pixel lcd screen, i use Mikro c to write the code. it has some functions like Glcd_Rectangle(); for drawing rectangles but i just dont know how to implement the following:
>detect when snake's head makes collision with fruit.
> make a score tab that shows the score on th top of the lcd screen .
> detect if the snake head has hit a wall or touched its tail
>randomly generate fruit on the lcd screen