Files
CPPGameBook/Capter1/ball.hpp

21 lines
275 B
C++

#include "SDL2/SDL.h"
class ball
{
public:
SDL_Rect rect;
float x;
float y;
float velx;
float vely;
SDL_Color color;
public:
ball();
~ball();
int GetXPos();
int GetYPos();
void Update();
void Draw(SDL_Renderer* renderer);
};