Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: lib/Banana/Banana.cpp
- Revision:
- 13:94abfe83a294
- Parent:
- 12:50a7abf21f18
- Child:
- 17:ac0cb2980f6e
--- a/lib/Banana/Banana.cpp Wed May 08 01:28:25 2019 +0000 +++ b/lib/Banana/Banana.cpp Wed May 08 19:49:35 2019 +0000 @@ -41,6 +41,9 @@ banana_x = rand() % (banana_max + 1 - banana_min) + banana_min; } lcd.drawSprite(banana_x,banana_y,8,8,(int *)game_banana); + char buffer[14]; + sprintf(buffer,"%i",score); + lcd.printString(buffer,60,0); lcd.refresh(); wait_ms(50); banana_y = banana_y + 1 + banana_time;