Problem statement
- There is a food object, eating(colliding with) that makes the snakes bigger.
- Snake can move in three directions a. up b. down c. forword
- If snake is a chain of objects, every object shifts to the previous object's position.
- If the snakes collide with itself, it's dead, Game Over!
- If the snake hits an edge, Game Over!
ToDos
1.a. Make a grid in the screen. 1.b. Create an object that moves in three directions. 1.c. snake object moves automatically
- Make the frog object appear randomly on screen.
- On eating(colliding with) the object the sanke object grows in length.
- Follow the snake path
- A new Oject pop up excluding the sanke body.
20 x 20 400 cell 400 x 400 array = [5][6] array[3][2] = 1 array[3][3] = 1
0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 [210] = 0 210/20 10 10