Yang Zhenye 201199680

Dependencies:   mbed

Revision:
2:baca89f466bc
Parent:
1:74f525027af6
Child:
5:fcad75e9b9e1
--- a/Ball/Ball.cpp	Tue Apr 28 10:21:42 2020 +0000
+++ b/Ball/Ball.cpp	Thu Apr 30 07:08:09 2020 +0000
@@ -6,10 +6,19 @@
 }
 
 Ball::~Ball()
-{
+{ for(i = 20; i >0; i--) {
+_x = 40 - _speed
+_y = 40 - 0.5*_speed
+if (_x < 0);
+ _x =0;
+ for (i = 20; i >0; i--) {
+ _x = 0 + _speed
+ 
 
 }
 
+void shoot() {
+    
 void Ball::init(int size,int speed)
 {
     _size = size;