test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
21
.config/Code/User/History/eedc553/C7ri.h
Normal file
21
.config/Code/User/History/eedc553/C7ri.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include "util.h"
|
||||
class Paddle{
|
||||
const int height;
|
||||
const int y;
|
||||
|
||||
int width;
|
||||
int x;
|
||||
float *color;
|
||||
|
||||
public:
|
||||
|
||||
Paddle(int width, int x, float *color) : height(25), y(10), width(width), x(x), color(color){
|
||||
DrawRectangle(x, y, width, height, color);
|
||||
}
|
||||
|
||||
Paddle& setX(int x) : x(x){
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue