Added interface for online score system.

This commit is contained in:
Michael Chen 2018-01-10 22:49:37 +01:00
parent ff3c1a5333
commit 7f36f6dd14
5 changed files with 17 additions and 10 deletions

BIN
bin/MySql.Data.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

9
bin/sqlConfig.cfg Normal file
View File

@ -0,0 +1,9 @@
sql11.freemysqlhosting.net
3306
sql11215077
EFik49X18z
sql11215077
highscores
score
username
time

View File

@ -7,28 +7,26 @@
typedef struct ballStruct { typedef struct ballStruct {
Vector Location, Momentum; Vector Location, Momentum;
SDL_Rect TargetRect; SDL_Rect TargetRect;
} Ball; double Size, Rotation, RotationValue;
int TextureIndex;
} Ball; // Objekt für die Eigenschaften des Balls
typedef struct paddleStruct { typedef struct paddleStruct {
double XLocation; double XLocation; // Notice: Locked Y-Coordinate
SDL_Rect TargetRect; SDL_Rect TargetRect;
} Paddle; int XSize, TextureIndex;
} Paddle; // Objekt für die Eigenschaften des Paddles
typedef struct blockStruct { typedef struct blockStruct {
Vector Location; Vector Location;
SDL_Rect TargetRect; SDL_Rect TargetRect;
} Block; int XSize, YSize, TextureIndex;
} Block; // Objekt für die Eigenschaften des Paddles
typedef struct powerupStruct { // Maybe implement later
Vector Location;
SDL_Rect TargetRect;
} Powerup;
// End Structs // End Structs
// Prototypes // Prototypes
void BREAKOUT_INITIALIZE(SDL_Renderer * renderer, int width, int height); void BREAKOUT_INITIALIZE(SDL_Renderer * renderer, int width, int height);
void BREAKOUT_GAMELOOP(Uint8 * keystate); void BREAKOUT_GAMELOOP(Uint8 * keystate);
void BALL_DRAW(Ball * ball);
void BREAKOUT_DEINITIALIZE(SDL_Renderer * renderer, int width, int height); void BREAKOUT_DEINITIALIZE(SDL_Renderer * renderer, int width, int height);
// End Prototypes // End Prototypes