play audio at the start instead.

This commit is contained in:
r0nk 2020-08-15 16:35:01 -05:00
parent ba07a9c4a4
commit c355a7a9e0

View File

@ -105,6 +105,7 @@ int main(){
srand(time(NULL));
game_state gs = {};
play_audio();
manager.init(640, 480, "Tic-Tac-Gugh");
manager.handle_window_close_event(handle_window_close);
manager.handle_keypress_event (handle_input_events);
@ -115,5 +116,4 @@ int main(){
while(exists_empty_tile(gs) && gs.turn != -1){
game_turn(gs, get_player_input());
}
play_audio();
}