Show "explosions" in which many dots scatter away from the location of a mouse click

Hi,I’ve a question.

I want to write a code like this:

Can anyone give me a example ?
Thank you!