
Final Commit
Dependencies: mbed
Diff: Food/Food.h
- Revision:
- 15:4c97fe30f3b7
- Parent:
- 8:a2b431b9b3f7
- Child:
- 17:94dd8a691d4a
--- a/Food/Food.h Thu Apr 12 11:20:27 2018 +0000 +++ b/Food/Food.h Thu Apr 12 12:41:05 2018 +0000 @@ -6,6 +6,9 @@ #include "Gamepad.h" #include "N5110.h" +int g_frame_counter(); + +static int g_fc; /** Food Class * @brief Describes the methods and functions for the food @@ -24,7 +27,10 @@ void update(); void draw(N5110 &lcd); // draws the food on the lcd - Vector2D get_rand_pos(); // gets a random number between 0-48, and 0 - 84 + Vector2D get_rand_pos(); // gets a random number between 0-48, and 0-84 + + void set_food_position(int set_frames, int number_frames); + Vector2D get_food_position(); private: