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.
justhomework/MCU/Final_Design_FAIL/food.h

18 lines
234 B
C
Raw Normal View History

2022-05-07 11:39:50 +00:00
#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