Renderproblem behoben, Input verarbeitung, Positionsupdate

This commit is contained in:
2025-10-22 19:57:08 +02:00
parent 0335a726c9
commit dd3d405ce6
8 changed files with 98 additions and 26 deletions

View File

@@ -1,4 +1,5 @@
#include "SDL2/SDL.h"
#include <iostream>
class ball
{
@@ -8,17 +9,16 @@ private:
int b_dir;
public:
SDL_Rect rect;
float x;
float y;
SDL_Color color;
float velx;
float vely;
SDL_Color color;
public:
ball();
~ball();
int GetXPos();
int GetYPos();
void Update();
void Update(float f_DeltaTime);
void Draw(SDL_Renderer* renderer);
};