Programm auf "Kettenreaktion" erweitert

This commit is contained in:
2025-10-25 20:39:48 +02:00
parent dd3d405ce6
commit 9e026c8074
8 changed files with 127 additions and 24 deletions

View File

@@ -1,5 +1,6 @@
#include "SDL2/SDL.h"
#include <iostream>
#include <vector>
class ball
{
@@ -12,13 +13,17 @@ public:
SDL_Color color;
float velx;
float vely;
bool alive;
public:
ball();
~ball();
//ball(int x, int y);
ball(int x, int y, int vx, int vy);
int GetXPos();
int GetYPos();
void Update(float f_DeltaTime);
void Update(float f_DeltaTime, std::vector<ball> &list);
void Draw(SDL_Renderer* renderer);
};