frogger game revision

Dependencies:   4DGL-uLCD-SE MMA8452 SDFileSystem mbed wave_player

Dependents:   C_Assembly

Fork of ECE2035_FroggerGame_SUM2015 by ECE 2035

Revision:
9:47f07aa85f1a
Parent:
8:1b6fc10c5cea
diff -r 1b6fc10c5cea -r 47f07aa85f1a cars/cars.cpp
--- a/cars/cars.cpp	Wed Jul 08 15:45:22 2015 +0000
+++ b/cars/cars.cpp	Mon Feb 01 06:43:06 2016 +0000
@@ -77,26 +77,42 @@
 
 void car_init(car_t * g) {
    if(g->lane == 1) 
-   {    g->car_blk_x = 3;
+   {    g->car_blk_x = 5;
         g->car_blk_y = 0;    
-        drawCar(g, 3, 0);
+        drawCar(g, 5, 0);
         return;
     }
     if (g->lane == 2)
     {
-        g->car_blk_x = 7;
+        g->car_blk_x = 8;
         g->car_blk_y = 0;
-        drawCar(g, 7, 0);
+        drawCar(g, 8, 0);
         return;
     }
         
     if (g->lane == 3)
     {
+        g->car_blk_x = 11;
+        g->car_blk_y = 0;
+        drawCar(g, 11, 0);
+        return;
+    }
+    
+    if (g->lane == 4)
+    {
+        g->car_blk_x = 6;
+        g->car_blk_y = 0;
+        drawCar(g, 6, 0);
+        return;
+    }
+    
+    if (g->lane == 5)
+    {
         g->car_blk_x = 10;
         g->car_blk_y = 0;
-        drawCar(g, 10, 0);
+        drawCar(g,10,0);
         return;
-       }
+    }
 
 return;
 }