Yang Junyao 201090191

Dependents:   2645_Project

Files at this revision

API Documentation at this revision

Comitter:
877963042
Date:
Sun May 05 14:56:18 2019 +0000
Parent:
50:88377d55e749
Commit message:
Final Submission. I have read and agreed with Statement of Academic Integrity.

Changed in this revision

N5110.cpp Show annotated file Show diff for this revision Revisions of this file
N5110.h Show annotated file Show diff for this revision Revisions of this file
diff -r 88377d55e749 -r f37db530e729 N5110.cpp
--- a/N5110.cpp	Fri May 03 07:48:29 2019 +0000
+++ b/N5110.cpp	Sun May 05 14:56:18 2019 +0000
@@ -69,228 +69,6 @@
     setBrightness(0.5);
 }
 
-// welcome screen - FLAPPY BRID
-void N5110::welcome()
-{
-    // F 2*6+7*2+2*5+9*2
-    int F[20][6] =   {
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,1,1 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    ( 1,1,1,1,1,0 ),
-    ( 1,1,1,1,1,0 ),
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-}; 
-
-    // L 18*2+2*6
-   int L[20][6] = {
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,1,1 },
-};
-
-    // A 2*6+7*4+2*6+9*4
-    int A[20][6] = {
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-};
-
-    // P 2*6+7*4+2*6+9*2
-    int P[20][6] = {
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },   
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,1,1 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-    { 1,1,0,0,0,0 },
-};
-
-    // Y 11*4+9*2
-    int Y[20][6] = {
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 0,0,1,1,0,0 },
-    { 0,0,1,1,0,0 },
-    { 0,0,1,1,0,0 },
-    { 0,0,1,1,0,0 },
-    { 0,0,1,1,0,0 },
-    { 0,0,1,1,0,0 },
-    { 0,0,1,1,0,0 },
-    { 0,0,1,1,0,0 },
-    { 0,0,1,1,0,0 },
-};
-
-    // B 1*4+1*5+1*5+ 5*4+1*5+2*5+1*5+5*4+1*5+1*5+1*4
-    int B[20][6] = {
-    { 1,1,1,1,0,0 },  
-    { 1,1,1,1,1,0 },
-    { 1,1,0,1,1,1 },  
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,1,1,1 },
-    { 1,1,1,1,1,0 },
-    { 1,1,1,1,1,0 },
-    { 1,1,0,1,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,1,1,1 },  
-    { 1,1,1,1,1,0 },
-    { 1,1,1,1,0,0 }, 
-};
-
-    // I 20*2
-    int I[20][2] = {
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },
-    { 1,1 },    
-};
-
-    // R 2*6+7*4+2*6+1*4+1*5+1*5+6*4
-    int R[20][6] = {
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },   
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,1,1 },
-    { 1,1,1,1,0,0 },
-    { 1,1,1,1,1,0 },
-    { 1,1,0,1,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },       
-};
-
-    // D 1*4+1*5+1*5+14*4+1*5+1*5+1*4
-    int R[20][6] = {
-    { 1,1,1,1,0,0 },  
-    { 1,1,1,1,1,0 },
-    { 1,1,0,1,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,0,1,1 },
-    { 1,1,0,1,1,1 },  
-    { 1,1,1,1,1,0 },
-    { 1,1,1,1,0,0 },       
-};
-
-
-}
-
 // sets normal video mode (black on white)
 void N5110::normalMode()
 {
diff -r 88377d55e749 -r f37db530e729 N5110.h
--- a/N5110.h	Fri May 03 07:48:29 2019 +0000
+++ b/N5110.h	Sun May 05 14:56:18 2019 +0000
@@ -244,13 +244,6 @@
     *   Powers down the display and turns of the backlight.
     *   Needs to be reinitialised before being re-used.
     */
-    void welcome();
-    
-    /** Screen
-    *
-    *   draw the welcome screen
-    *   for each time before game start
-    */
     void turnOff();
 
     /** Clear