Laila Al Badwawi 200906179 SpaceInvaders I declare this my own independent work and understand the university rules on plagiarism.

Dependencies:   mbed

Revision:
145:e060e890c725
Parent:
142:92f277a3e7e6
Child:
149:bd0f37008f5a
--- a/Spaceship/Spaceship.cpp	Thu May 09 08:26:27 2019 +0000
+++ b/Spaceship/Spaceship.cpp	Thu May 09 09:27:32 2019 +0000
@@ -18,7 +18,8 @@
       _speed_spaceship= speed_spaceship;              // the speed of the alien. 
 }
 
-
+///////////////////////////////////////////////////////////////////////////
+  
   // void function to draw the spaceship by using N5110 library 
 void Spaceship::draw(N5110 &lcd)
 {
@@ -39,7 +40,7 @@
 //  printf("North\n");                                //printf statment.
     } else if(d==S) {                                 // else if condition to check if the joystic's direction moves to the south
        
-        _y_spaceship+=2;                             // the position of the spaceship at y-coordiante increment by two
+   _y_spaceship+=2;                             // the position of the spaceship at y-coordiante increment by two
 
          //  printf("North\n");                      //printf statment