Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: GameObjects/SnakeFood/SnakeFood.h
- Revision:
- 83:329da564799a
- Parent:
- 81:4c1641e10dcd
- Child:
- 97:819c0689efa7
diff -r c51ae8a501d1 -r 329da564799a GameObjects/SnakeFood/SnakeFood.h --- a/GameObjects/SnakeFood/SnakeFood.h Mon May 06 10:49:50 2019 +0000 +++ b/GameObjects/SnakeFood/SnakeFood.h Mon May 06 14:28:35 2019 +0000 @@ -16,13 +16,13 @@ * * This function initialises the SnakeFood library. */ - void init(); + void init(N5110 *lcd); /** Draw * * This function draws the SnakeFood sprite onto the screen. */ - void draw(N5110 &lcd); + void draw(); /** Update * @@ -48,6 +48,11 @@ int _fx; //food x int _fy; //food y int _blockbuff; + + //Pointer to the game pad object pad. + Gamepad *_pad; + //Pointer to the N5110 object lcd. + N5110 *_lcd; }; #endif \ No newline at end of file