34 lines
903 B
C
34 lines
903 B
C
#ifndef __breakout_h__
|
|
#define __breakout_h__
|
|
|
|
#include "vector.h"
|
|
|
|
// Structs
|
|
typedef struct ballStruct {
|
|
Vector Location, Momentum;
|
|
SDL_Rect TargetRect;
|
|
double Size, Rotation, RotationValue;
|
|
int TextureIndex;
|
|
} Ball; // Objekt für die Eigenschaften des Balls
|
|
|
|
typedef struct paddleStruct {
|
|
double XLocation; // Notice: Locked Y-Coordinate
|
|
SDL_Rect TargetRect;
|
|
int XSize, TextureIndex;
|
|
} Paddle; // Objekt für die Eigenschaften des Paddles
|
|
|
|
typedef struct blockStruct {
|
|
Vector Location;
|
|
SDL_Rect TargetRect;
|
|
int XSize, YSize, TextureIndex;
|
|
} Block; // Objekt für die Eigenschaften des Paddles
|
|
// End Structs
|
|
|
|
// Prototypes
|
|
void BREAKOUT_INITIALIZE(SDL_Renderer * renderer, int width, int height);
|
|
void BREAKOUT_GAMELOOP(Uint8 * keystate);
|
|
void BREAKOUT_DEINITIALIZE(SDL_Renderer * renderer, int width, int height);
|
|
// End Prototypes
|
|
|
|
#endif // __breakout_h__
|