Push new Blocks with animation

This commit is contained in:
Michael Chen
2018-01-26 10:40:19 +01:00
parent c407253228
commit 629f3f94a8
2 changed files with 49 additions and 9 deletions

View File

@@ -32,14 +32,14 @@ typedef struct paddleStruct {
typedef struct blockStruct {
SDL_Rect TargetRect;
int TextureIndex, HP;
int TextureIndex, HP, DestYValue;
} Block; // Objekt für die Eigenschaften des Paddles
typedef struct sceneryStruct {
Ball ball;
Paddle paddle;
Block * blocks;
int BlockCount, Lives, StartCountdown, Frames, Score, DestroyedBlocks;
int BlockCount, Lives, StartCountdown, Frames, Score, DestroyedBlocks, TopLeftBlockColor, XBlocks, YBlocks;
bool IsPaused, IsGameOver;
} Scenery; // Objekt für die Objekte und Eigenschaften einer Szenerie
// End Structs