library for SnekGame
Embed:
(wiki syntax)
Show/hide line numbers
Food.h
00001 #ifndef FOOD_H 00002 #define FOOD_H 00003 00004 00005 #include "mbed.h" 00006 #include "N5110.h" 00007 #include "Gamepad.h" 00008 //#include "Snake.h" 00009 00010 /************************Structs************************/ 00011 struct posXY{ 00012 int x; 00013 int y; 00014 00015 }; 00016 /************************Class Def************************/ 00017 class Food{ 00018 00019 00020 /************************Public Vars************************/ 00021 public: 00022 00023 Food(); 00024 ~Food(); 00025 void init(); 00026 void draw(N5110 &lcd); 00027 void respawn(); 00028 posXY returnPos(); 00029 00030 /************************Private Vars************************/ 00031 private: 00032 00033 00034 }; 00035 #endif
Generated on Fri Aug 5 2022 12:46:33 by
1.7.2