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