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: MenuClasses/StartScreen/StartScreen.cpp
- Revision:
- 87:871d9fecb593
- Parent:
- 84:9950d561fdf8
diff -r fafb72e08195 -r 871d9fecb593 MenuClasses/StartScreen/StartScreen.cpp
--- a/MenuClasses/StartScreen/StartScreen.cpp Tue May 07 00:02:11 2019 +0000
+++ b/MenuClasses/StartScreen/StartScreen.cpp Wed May 08 16:39:24 2019 +0000
@@ -165,9 +165,9 @@
for(int ani = -51; ani <= 0; ani+=3) {
_lcd->clear();
- _lcd->drawSprite(0,ani,48,84,(int *)titleSprite); //Function used to draw the sprite
+ _lcd->drawSprite(0,ani,48,84,(int *)titleSprite); //Function used to draw the titleSprite
_lcd->refresh();
- _pad->tone(song[(ani+48)/3],0.1);
+ _pad->tone(song[(ani+48)/3],0.1); //This plays all the tones saved in song unless it is skipped by pressing start or A.
//This Allows us to skip/play the animation before the menu screen
if (StartScreen::checkStartorAPressed()) {
@@ -208,7 +208,7 @@
void StartScreen::credits()
{
_lcd->clear();
- if(showCredits) {
+ if(showCredits) { //Only shows the credits to the player if it had been kept enabled in settings.
_lcd->printString("Created BY",8,1);
_lcd->printString("Ahmed",24,3);
_lcd->printString("Adamjee",20,4);