One of the challenging issues with in-game explosions - is to decide how you’ll deal damage to the player.
First, it should be an area damage and regardless of the player’s position he should receive damage (if he stays close enough).
Lately I finished the “Designing Games”, by Tynan Sylvester, lead developer of Rimworld.
Highly recommend to everyone who is interested in game design.
This book is not about the code, but about experience that your game will create.