Add a short help in-game
This commit is contained in:
parent
74fdeb71a1
commit
a6ca3d0ef6
15
src/main.c
15
src/main.c
|
@ -78,6 +78,21 @@ int main(void)
|
|||
|
||||
gint_world_switch(GINT_CALL(read_save, (void *)¤t_game));
|
||||
|
||||
if (current_game.total_time == 0)
|
||||
{
|
||||
dclear(C_WHITE);
|
||||
|
||||
dtext(1, 1, C_BLACK, "CONTROLES :");
|
||||
dtext(1, 18, C_BLACK, "[FLECHES] : SELECTIONNER");
|
||||
dtext(1, 35, C_BLACK, "[SHIFT] : VALIDER");
|
||||
dtext(1, 52, C_BLACK, "[ALPHA]/[EXIT] : REVENIR EN ARRIERE");
|
||||
dtext(1, 69, C_BLACK, "[VARS] : MENU DES MUTATIONS");
|
||||
dtext(1, 86, C_BLACK, "[->] : MODE RAPIDE");
|
||||
|
||||
dupdate();
|
||||
getkey();
|
||||
}
|
||||
|
||||
int to_save = main_loop(¤t_game);
|
||||
|
||||
if (to_save) gint_world_switch(GINT_CALL(write_save, (void *)¤t_game));
|
||||
|
|
|
@ -49,7 +49,7 @@ void read_save(struct game *current_game)
|
|||
current_game->planes[i] = new_planes[i];
|
||||
}
|
||||
|
||||
// Loa
|
||||
// Load
|
||||
for (int i = 0; i < NB_PLANES; i ++)
|
||||
{
|
||||
BFile_Read(fd, current_game->planes[i], sizeof(struct plane), -1);
|
||||
|
|
Loading…
Reference in New Issue