BallClass inklusive renderer / Drawfunktion erstellt
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
#include "SDL2/SDL.h"
|
||||
|
||||
class ball
|
||||
{
|
||||
private:
|
||||
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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user