18 lines
No EOL
266 B
C++
18 lines
No EOL
266 B
C++
#include "util.h"
|
|
class Ball{
|
|
const int radius;
|
|
|
|
int x;
|
|
int y;
|
|
float *color;
|
|
|
|
public:
|
|
|
|
Ball(int x, int y, int radius, float *color) : x(x), y(y), radius(radius), color(color){}
|
|
|
|
void draw(){
|
|
DrawCircle(x, y, radius, color);
|
|
}
|
|
|
|
|
|
}; |