BallClass inklusive renderer / Drawfunktion erstellt

This commit is contained in:
2025-10-18 14:24:24 +02:00
parent 860d8febe6
commit 0e29919fd2
7 changed files with 93 additions and 10 deletions

View File

@@ -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);
};