Reham Faqehi / Mbed 2 deprecated fy15raf

Dependencies:   mbed

Fork of fy15raf by ELEC2645 (2017/18)

Files at this revision

API Documentation at this revision

Comitter:
RehamFaqehi
Date:
Tue May 08 11:10:34 2018 +0000
Parent:
17:d7eea81e7222
Commit message:
Final Submission. I have read and agreed with Statement of Academic Integrity.

Changed in this revision

Spaceship/Spaceship.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Spaceship/Spaceship.cpp	Tue May 08 08:24:22 2018 +0000
+++ b/Spaceship/Spaceship.cpp	Tue May 08 11:10:34 2018 +0000
@@ -38,7 +38,7 @@
 {
     _speed = int(mag*10.0f); //shows how far from the center does the Spaceship move based on the joystick
 
-    // update y and x values based on direction of movement
+    // update y and x values based on direction of joystick movement
     if (d == N) {
         _y-=_speed;
     } else if (d == S) {
@@ -49,6 +49,7 @@
         _x+=_speed;
     }
 
+
     // check the Spaceship coordinates so it doesn't go off screen
     if (_y < 1) {
         _y = 1;