![]() |
nSnake
A ncurses implementation of the classic Snake game
|
The fruit structure. More...
#include <fruit.h>
Data Fields | |
| int | x |
| x position of the fruit on stage | |
| int | y |
| y position of the fruit on stage | |
| int | bonus |
| Bonus that the fruit adds to the score when eaten. | |
The fruit structure.
Each fruit has it x and y positions and a bonus score - indicating how many extra points will be rewarded to the snake when it eats the fruit.
1.8.3.1