ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18zc2

Dependencies:   mbed

Revision:
4:e46c295d4baf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ROCK/Rock.cpp	Sat May 23 18:12:03 2020 +0000
@@ -0,0 +1,26 @@
+#include"ROCK.h"
+rock::rock()
+{
+
+}
+
+rock::~rock()
+{
+
+}
+
+void rock::init(int size,int speed)
+{
+    srand(time(null));
+    int a=rand()%84;
+    int i;
+    for(i=0;i<85;i++)
+    {
+        if(i==a)
+        {
+            _velocity.x=_a
+            _velocity.y=speed
+            }
+        }
+    
+    }
\ No newline at end of file