![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: GameObjects/Snake/Snake.h
- Revision:
- 68:b9cfd27987ac
- Parent:
- 53:527cf297b088
- Child:
- 69:55e309da7efd
--- a/GameObjects/Snake/Snake.h Sat May 04 12:28:04 2019 +0000 +++ b/GameObjects/Snake/Snake.h Sat May 04 16:56:04 2019 +0000 @@ -18,7 +18,7 @@ * * This function initalises the Snake library. */ - void init(); + void init(int length, int speed); /** Draw * @@ -26,6 +26,12 @@ */ void draw(N5110 &lcd, int length, int level); + /** Set Position + * + * This function sets a position for where the snake should spawn. + */ + void set_pos(Vector2D p); + /** Update * * This function updates the Snake sprite position on screen.