I notice that when i get in a bad head space, i trend to become less active. It then becomes more difficult to start doing anything.
Playing a game like dark souls gives you two things: 1. Its stimulating, and gives you instant feedback. 2. It allows you to fail, and have to retry.
So instead of passively drowning my self in algorithmic content, im actively working towards a goal. This then makes it easier to actually pick something up in the real word.
breaking out of the initial cycle of running away from the world is the most difficult part of getting out of a bad headspace (for me). So anything that breaks open those initial steps can be very helpful.