Live data from Hacker News

Show HN: Number Gacha, a gacha game distilled to its essence

isabisabel.com

61–70 of 149 posts

Re: Show HN: Number Gacha, a gacha game distilled to its essence

#64
post #5

Having never played gacha games but getting a good laugh out of this, is this really a thing people play? How different is the real gameplay?

RNGesus is far, far, far too nice on this game. :)

In real gacha, the odds of pulling something good are generally super ridiculously low.

The odds are generally so bad that they will implement a "pity" system to avoid the awful PR from the common case of spending a ton of money and getting absolute garbage.

Re: Show HN: Number Gacha, a gacha game distilled to its essence

#65

If the battle has numeric controls for blocking and other actions (assigned to 1,2,3...) the game would be more fun to try and optimize.

document.addEventListener('keydown', (event) => {

  // Map the keys '1', '2', '3' to array indices 0, 1, 2
  const keyMap = {
    '1': 0,
    '2': 1,
    '3': 2
  };

  // Check if the pressed key is 1, 2, or 3
  if (event.key in keyMap) {
    const targetIndex = keyMap[event.key];
    
    // Dynamically fetch the buttons currently in the DOM
    const buttons = document.getElementsByClassName('block-button');
    
    // Ensure the button exists at that index before clicking
    if (buttons[targetIndex]) {
      buttons[targetIndex].click();
    }
  }
});
Post reply on HN