dotfiles/.config/Code/User/History/eedc553/zbsV.h

22 lines
360 B
C
Raw Normal View History

2024-06-16 18:53:25 +05:00
#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){
this->x = x;
return *this;
}
};