freyam / raiders-of-hamdan

Raiders of Hamdan tells the story of the indestructible kingdom of the Hamdan. In this CLI game, you play as the Ruler of the Electra Kingdom who is trying to bring down the legacy of Hamdan.
0 stars 0 forks source link

game getting stuck and cannot terminate #1

Open saiakarsh193 opened 2 years ago

saiakarsh193 commented 2 years ago

hey, i was just trying your game. the player died, and the game just got stuck. Even ctrl+c didn't work. Are you catching that interrupt? or is it something else?

freyam commented 2 years ago

Hey @saiakarsh193, thanks for bringing this to my notice.

You have two options when your main character dies:

  1. Deploy the troops (you can do so by pressing their spawn keys (1 - 9)).
  2. Quit the game. ^C doesn't work because you are still technically in the game, so the right way to quit would be to press q.

Happy gaming!