Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: ROCK/Rock.cpp
- 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