Arturs Kozlovskis / Mbed 2 deprecated ELEC2645_Project_el18ak

Dependencies:   mbed

Revision:
15:3f558f8b54ea
Parent:
14:739115711bf8
Child:
21:32429d8e90ff
diff -r 739115711bf8 -r 3f558f8b54ea My_game_clases/Functions.h
--- a/My_game_clases/Functions.h	Wed Apr 29 13:51:14 2020 +0000
+++ b/My_game_clases/Functions.h	Fri May 01 12:54:25 2020 +0000
@@ -15,8 +15,9 @@
     int time_incrementer[10];//increments time value
     int ball_x_incrementer[10];//increments movement_x_pos value
     int delta_r[10]; // defines the ball size    
-    int initial_starting_pos[10];
-    int time_limit[10];// restrict time to 6 or 5 depending on the balls size
+    int ball_trajectory_width[10];
+    
+    
     
 };
 struct Ball_linear{
@@ -43,14 +44,19 @@
     int random(Gamepad &pad);//generates a random number
     void ball_creater_linear(N5110 &lcd, Objects &objects, Gamepad &pad);//controls ball making and their movement equations
     void ball_creater_parabolic(N5110 &lcd, Objects &objects, Gamepad &pad);//controls ball making and their movement
+    int round(float number); //rounds a number
     int get_score();//gets the players score
     
     vector <int> created_balls;//holds linear balls
     vector <int> created_ball;//holds the parabolic balls
+    
 
 private:
     int _initial_radiuss;//holds the intial ball radiuss which is 2
     int _cannon_y_pos; // holds the cannons y position
     int _score;//holds the score
+    int _counter;
+    int _previous;
+    int _now;
 };
 #endif
\ No newline at end of file