Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: Snake/Snake.h
- Revision:
- 9:d1d79d4ee673
- Parent:
- 8:890b986b16a4
- Child:
- 13:9785f2404045
--- a/Snake/Snake.h Tue Mar 26 18:36:50 2019 +0000 +++ b/Snake/Snake.h Wed Mar 27 18:20:36 2019 +0000 @@ -14,29 +14,29 @@ Snake(); ~Snake(); - /** Initialise Player + /** Initialise Snake * - * This function initalises the player library. + * This function initalises the Snake library. */ void init(); /** Draw * - * This function draws the Player sprite onto the screen at the specified coordinates. + * This function draws the Snake sprite onto the screen at the specified coordinates. */ void draw(N5110 &lcd, int length); /** Update * - * This function updates the player sprite position on screen. + * This function updates the Snake sprite position on screen. */ void update(Direction d,float mag,int length); /** Get Position * - * This function obtains the coordinate of the top-left pixel in the player sprite. + * This function obtains the coordinate of the top-left pixel in the Snake sprite. */ - Vector2D get_pos(); + Vector2D get_pos(int length); private: