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
ROCK/Rock.cpp
- Committer:
- ChenZirui
- Date:
- 2020-05-23
- Revision:
- 4:e46c295d4baf
File content as of revision 4:e46c295d4baf:
#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
}
}
}