Skip to content

Commit

Permalink
Renamed pause function
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Nejezchleb committed May 5, 2021
1 parent da2ab9c commit 4a9c2e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions game.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int run_game(game_init_data_t *game_data, peripherals_data_t *peripherals)
pthread_mutex_unlock(&mtx);
if (read == PAUSE_KEY)
{
pause(&fb, peripherals);
pause_game(&fb, peripherals);
}
}
pthread_mutex_lock(&mtx);
Expand Down Expand Up @@ -167,7 +167,7 @@ bool game_tick(map_data *map, pacman_type *pacman, ghost_type *ghost_arr, int nu
return ret;
}

void pause(fb_data *fb, peripherals_data_t *peripherals)
void pause_game(fb_data *fb, peripherals_data_t *peripherals)
{
char read = ' ';
draw_text_center(fb, PAUSE_TEXT, peripherals->lcd_w / 2, peripherals->lcd_h / 2,
Expand Down
2 changes: 1 addition & 1 deletion game.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void led_blink(unsigned char *led_mem_base, int scare_countdown, int pacman_scor
* @param fb
* @param peripherals
*/
void pause(fb_data *fb, peripherals_data_t *peripherals);
void pause_game(fb_data *fb, peripherals_data_t *peripherals);

/**
* @brief moves pacman and each ghost one step, checking for collisions and user input
Expand Down

0 comments on commit 4a9c2e5

Please sign in to comment.