2018-01-09 13:22:10 +01:00
|
|
|
#ifndef __breakout_h__
|
|
|
|
#define __breakout_h__
|
|
|
|
|
|
|
|
#include "vector.h"
|
|
|
|
|
|
|
|
// Structs
|
|
|
|
typedef struct ballStruct {
|
|
|
|
Vector Location, Momentum;
|
|
|
|
SDL_Rect TargetRect;
|
|
|
|
} Ball;
|
|
|
|
|
|
|
|
typedef struct paddleStruct {
|
|
|
|
double XLocation;
|
|
|
|
SDL_Rect TargetRect;
|
|
|
|
} Paddle;
|
|
|
|
|
|
|
|
typedef struct blockStruct {
|
|
|
|
Vector Location;
|
|
|
|
SDL_Rect TargetRect;
|
|
|
|
} Block;
|
|
|
|
|
|
|
|
typedef struct powerupStruct { // Maybe implement later
|
|
|
|
Vector Location;
|
|
|
|
SDL_Rect TargetRect;
|
|
|
|
} Powerup;
|
|
|
|
// End Structs
|
|
|
|
|
|
|
|
// Prototypes
|
2018-01-10 15:37:55 +01:00
|
|
|
void BREAKOUT_INITIALIZE(SDL_Renderer * renderer, int width, int height);
|
|
|
|
void BREAKOUT_GAMELOOP(Uint8 * keystate);
|
|
|
|
void BALL_DRAW(Ball * ball);
|
|
|
|
void BREAKOUT_DEINITIALIZE(SDL_Renderer * renderer, int width, int height);
|
2018-01-09 13:22:10 +01:00
|
|
|
// End Prototypes
|
|
|
|
|
|
|
|
#endif // __breakout_h__
|