Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: Blocks/Blocks.h
- Revision:
- 12:1e601b176437
- Parent:
- 11:d6ceff1ff6d7
- Child:
- 19:05cc9f801468
--- a/Blocks/Blocks.h Sat Mar 30 21:42:28 2019 +0000 +++ b/Blocks/Blocks.h Tue Apr 02 17:06:22 2019 +0000 @@ -21,13 +21,13 @@ * * This function draws the Blocks onto the screen. */ - void draw(N5110 &lcd, int length); + int draw(N5110 &lcd, int length, int blocknum, int srn); /** Update * * This function updates the position of the Blocks as they move down the screen. */ - void update(); + void update(int blocknum, int srn, int send); /** Get Position * @@ -35,6 +35,12 @@ */ Vector2D get_pos(); + /** Get Number + * + * This function obtains the number inside the Blocks sprite at a specefic location. + */ + int * get_number(); + /** Set Position * * This function is used to change the position of the sprite to specific coordinates when called. @@ -46,6 +52,7 @@ int blockdrop; int caseselect[5]; int i; + int send;