Arturs Kozlovskis / Mbed 2 deprecated ELEC2645_Project_el18ak

Dependencies:   mbed

Revision:
24:74a53dd49806
Parent:
22:f1811602a817
Child:
27:da17a102c8d0
--- a/main.cpp	Mon May 18 10:54:22 2020 +0000
+++ b/main.cpp	Mon May 18 11:27:07 2020 +0000
@@ -81,7 +81,7 @@
         functions.ball_creater_parabolic(lcd,objects,pad);
         
         objects.draw_shots(lcd,pad, true);//again draws the shots so they would be visible on the screen
-        functions.collision_checker(lcd,objects);//cheks for the collisions
+        functions.collision_checker(lcd,objects,pad);//cheks for the collisions
         objects.draw_base(lcd);//draws the base of the game
         objects.cannon_position(pad);//changes the cannon postion
         objects.draw_cannon(lcd);//draws the cannon