Renderproblem behoben, Input verarbeitung, Positionsupdate
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user