18 lines
265 B
C
18 lines
265 B
C
![]() |
#include "util.h"
|
||
|
class Paddle{
|
||
|
const int height;
|
||
|
const int y;
|
||
|
|
||
|
int width;
|
||
|
int x;
|
||
|
float *color;
|
||
|
|
||
|
public:
|
||
|
|
||
|
Paddle(int width, int x) : height(25), y(10), width(width), x(x){
|
||
|
DrawRectangle(x, y, width, height, colors[GRAY]);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
};
|