Le support aux utilisateurs et les demandes de création de comptes externes doivent être faites depuis les issues du projet GitLab HEFR (https://gitlab.forge.hefr.ch/forge-hefr/gitlab-hefr)

Commit e93884f8 authored by Corentin Bompard's avatar Corentin Bompard
Browse files

Update time factor

parent 60ba8bfc
Pipeline #15613 failed with stages
in 9 seconds
......@@ -10,7 +10,7 @@
#define WORD_LENGTH 9
#define ERROR 1
#define NO_ERROR 0
#define TIME_FACTOR 5
#define TIME_FACTOR_DIFFICULTY 5
#define MAX_NB_ERRORS 6
char alphabet[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
......@@ -157,7 +157,7 @@ void handle_events(game_events event, game* game)
game->inMenu = true;
game->selected_word[index++] = game->selected_char;
game->selected_word_length = strlen(game->selected_word);
game->counter = (strlen(game->selected_word) + 1) * TIME_FACTOR;
game->counter = (strlen(game->selected_word) + 1) * TIME_FACTOR_DIFFICULTY;
game->selected_char = 'a';
game->selected_char_index = 0;
msgq_post(game->menu_msq, (void*)MENU_RENDER);
......@@ -212,7 +212,7 @@ void handle_events(game_events event, game* game)
game->selected_word_length = str_length(game->selected_word);
game->selected_char = 'a';
game->selected_char_index = 0;
game->counter = (str_length(game->selected_word) + 1) * TIME_FACTOR;
game->counter = (str_length(game->selected_word) + 1) * TIME_FACTOR_DIFFICULTY;
msgq_post(game->menu_msq, (void*)MENU_RENDER);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment