![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Owen Cavender 201159294
Diff: GameEngine.cpp
- Revision:
- 9:a69a6a06dddf
- Parent:
- 8:997f90c88246
- Child:
- 10:ee781d18e0f6
--- a/GameEngine.cpp Thu May 28 18:50:56 2020 +0000 +++ b/GameEngine.cpp Thu May 28 19:16:52 2020 +0000 @@ -20,7 +20,7 @@ lcd.printString(buffer1,WIDTH/2,1); // font is 8 wide, so leave 4 pixel gape from middle assuming two digits char buffer2[14]; } -void GameEngine::print_scores(N5110 &lcd) +void GameEngine::print_scores(N5110 &lcd, Snake &snake) { int score = snake.get_score(); @@ -33,7 +33,7 @@ -void GameEngine::get_LEDs(Gamepad &pad) +void GameEngine::get_LEDs(Gamepad &pad, Snake &snake) { pad.leds_off(); Vector2D Snakehead = snake.get_Snakehead();