PaimaStudios / tarochi-game

0 stars 0 forks source link

Avoid random encounters when the menu is open #167

Open SebastienGllmt opened 5 months ago

SebastienGllmt commented 5 months ago

This is historically one of the big complaints with Tarochi (that you still get random encounters when the menu is open)

We could solve this in a few ways:

  1. Redesign the menu system entirely (ex: no menu in the wild. Only quick actions that are only 1 button press. Auto-pots that get used to heal your monsters after battle)
  2. Make that closing & opening the menu is tracked onchain
  3. Make that opening the menu sends a tx in the background to pause any random encounters for X seconds (ex: 15 seconds) to make it less likely they'll get a random encounter right after opening the menu. Note this might screw people over if they open a menu while looking for a rare+ monster
  4. Send a tx in the background once the player takes their first step after a random encounter. This means, as long as they don't move, they have time to use potions or things like that before another random encounter happens

None of these are great, but we definitely have to pick something

RadinEth commented 5 months ago

The way it actually works is not great I admit. But those 3 solutions aren't great enough too imo.

Maybe there is something better but no one actually thought about it ?

You could add a "grace period" like, after a fight there is 10-15 secs when you can't be attacked by a monster, what do you think ?

SebastienGllmt commented 5 months ago

You could add a "grace period" like, after a fight there is 10-15 secs when you can't be attacked by a monster, what do you think ?

This already exists. The problem is that sometimes people spend a bit of time in the post-battle menu looking at how much XP they got, but the post-battle menu already counts towards the grace period