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 {
Vector Location, Momentum;
SDL_Rect TargetRect;
} Ball;
double Size, Rotation, RotationValue;
int TextureIndex;
} Ball; // Objekt für die Eigenschaften des Balls
typedef struct paddleStruct {
double XLocation;
double XLocation; // Notice: Locked Y-Coordinate
SDL_Rect TargetRect;
} Paddle;
int XSize, TextureIndex;
} Paddle; // Objekt für die Eigenschaften des Paddles
typedef struct blockStruct {
Vector Location;
SDL_Rect TargetRect;
} Block;
typedef struct powerupStruct { // Maybe implement later
Vector Location;
SDL_Rect TargetRect;
} Powerup;
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 BALL_DRAW(Ball * ball);
void BREAKOUT_DEINITIALIZE(SDL_Renderer * renderer, int width, int height);
// End Prototypes