Skip to content

Commit

Permalink
version final todo listo
Browse files Browse the repository at this point in the history
  • Loading branch information
psyo committed Nov 11, 2023
1 parent e331449 commit 098a467
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 41 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CFLAGS = -O1 \
-lmysql -lws2_32 -lwsock32 -lsecur32 \
-lraylib -lopengl32 -lgdi32 -lwinmm \
-llibpd -lportaudio \
#-mwindows
-mwindows

#-std=c99
# para incluir las librerias y headers en la carpeta lib e include
Expand Down
15 changes: 11 additions & 4 deletions include/snskt/snake.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ typedef struct nodoSnake_t{
// estructura de usuarios para el scoreboard
typedef struct player_db_t{
struct player_db_t* sig;
char* name;
char name[14];
s32 score;

}player_db_t;
Expand Down Expand Up @@ -93,12 +93,19 @@ typedef struct jueguito_t{
MYSQL* con;

// scoreboard users
player_db_t* scoreboard;
player_db_t* player;

// numero que controla cuando se incia a dibujar los scores
s64 init_dibujar_score;

// dibujar score estado para evitar overflow
u8 dibujar_board;
// cantidad scores
u16 cantidad_scores;

// contador dibujar board;
f32 contador_veces_dibujar_board;

// jugador database insert

}jueguito_t;

void jugando_snake(nodoSnake_t *snake_cabeza, jueguito_t *jueguito_vars);
Expand Down
Loading

0 comments on commit 098a467

Please sign in to comment.