This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
|
#ifndef _FOOD_H_
|
|
#define _FOOD_H_
|
|
|
|
#include "snake.h"
|
|
#include "display.h"
|
|
#include <stdlib.h>
|
|
struct FOOD
|
|
{
|
|
Dot d;
|
|
unsigned char isEnable;
|
|
} ;
|
|
typedef struct FOOD Food;
|
|
|
|
|
|
void food_add();
|
|
void food_draw();
|
|
void logicJudge();
|
|
#endif |