mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
add place sound effect
This commit is contained in:
@@ -113,6 +113,8 @@ void place_update(gamedata* const game_data, input_data const move) {
|
||||
set_shape(game_data->rows, curr_id, game_data->sel_x, game_data->sel_y); // if the shape intersects vertically, write the shape at the current position and return
|
||||
clear_rows(game_data->rows, &game_data->score); // clear the rows that have been completed
|
||||
|
||||
audio_play(game_data->audio_device, &game_data->place_sfx);
|
||||
|
||||
next_shape(game_data);
|
||||
if (shape_intersects(game_data->rows, game_data->curr_idx, game_data->sel_x, game_data->sel_y))
|
||||
game_data->run = false;
|
||||
|
||||
Reference in New Issue
Block a user