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.
Dependencies: mbed
Fork of el17dg by
Diff: main/main.cpp
- Revision:
- 35:172db1608332
- Parent:
- 34:754915ce9de5
- Child:
- 36:207ec7db8648
diff -r 754915ce9de5 -r 172db1608332 main/main.cpp
--- a/main/main.cpp	Tue Apr 30 19:24:41 2019 +0000
+++ b/main/main.cpp	Tue Apr 30 20:51:39 2019 +0000
@@ -44,6 +44,8 @@
 void introMusic(int low_frequency_music_counter);
 void introPartOneText();
 void intro();
+void createdByIntro();
+void noteToPlayer();
 void menuSelection();
 
 ScreenOption current_screen = ScreenOption_Menu;
@@ -53,9 +55,11 @@
     gamepad.init();
     //printf("Intro starts\n"); 
     intro();
-    srand(rand_y * 1000000);                            //Makeing the generated y position for the enemy to be trully random.
-    
-    while(1){                                           //Waiting for the option "start game" to be selected and for the button B to be pressed
+    createdByIntro();
+    noteToPlayer();
+    //Makeing the generated y position for the enemy to be trully random.
+    srand(rand_y * 1000000);                            
+    while(1){                                         
         lcd.clear();
         menuSelection();
         lcd.refresh();
@@ -175,4 +179,23 @@
         gamepad.tone(90,1);
         low_frequency_music_counter = 0;
     }
+}
+void createdByIntro(){
+    lcd.clear();
+    lcd.printString("Created and",0,0);
+    lcd.printString("Developed by",0,1);
+    lcd.printString("D Griskovs",10,3);
+    lcd.printString("el17dg",20,4);
+    lcd.printString("201160286",12,5);
+    lcd.refresh();
+    wait(2);
+}
+
+void noteToPlayer(){
+    lcd.clear();
+    lcd.printString("Please Read",0,0);
+    lcd.printString("The TUTORIAL",10,2);
+    lcd.printString("First!",30,4);
+    lcd.refresh();
+    wait(3);
 }
\ No newline at end of file
    