I am making a 2D shooting game.
In my update(float td) function, I am doing collision check every frame between the enemies and bullets.
void update(float td) {
/*
1) Loop through enemies -> get Rect {
2) loop through bullets -> get Rec {
3) Do collision check between two Rects
-> if overlap, play hitting sound
}
}
*/
}
But I realized that sometimes multiple sound effects are played almost at the same time for ‘multi-kill’.
which makes the game a bit noisy and dirty, even worse when the game gets 10+ multi-kill.
But is this an okay phenomenon in terms of memory usage and use experience?
My sound effects range from 3KB ~ 30KB.