ermiyaeskandary / Slither.io-bot

Just for fun and AI. Written in Javascript, this is a project which the aim is to make a computer play against humans inside a human-driven game, which is in this case Slither.io. The goal is simple - try and make the snake live and get as long as possible.
Mozilla Public License 2.0
195 stars 124 forks source link

toggle for disabling right-click functionality #238

Closed jellybabies closed 8 years ago

jellybabies commented 8 years ago

Invariably after playing an hour my hand can get a little cold in this not-ergonomic configuration and I can excited accidentally tap right click.

I would like a UI key to disable right-click-bot-enable leaving only the letter 'T' for this.

I looked through the javascript myself trying to find which line(s) might be responsible but was unable to decipher it.

Salvationdk commented 8 years ago

I still use the right click option, and would be sad if this goes away..

Drflash55 commented 8 years ago

I see there being too many toggles for things... If @ErmiyaEskandary want's to go through the trouble of making a toggle for this, then it's fine by me.

ermiyaeskandary commented 8 years ago

TBH, toggles for everything seems.... seems...

marconia commented 8 years ago

What would one need to change one's self to disable right-click bot toggle?

ermiyaeskandary commented 8 years ago

I don't agree with this suggestion, with all due respect...

Seple commented 8 years ago

@jellybabies Weak argument, sorry :-1: more advantages than disadvantages.

Options : bot - the right mouse button disable / enable. "Fast Boost" - the left mouse button disable / enable.

wtf? he doing himself the problem of human error is obvious...

ChadSki commented 8 years ago

You can disable the right-click by commenting out this whole case: https://github.com/ErmiyaEskandary/Slither.io-bot/blob/f2cc375d3aeb685f69efd91c4e8867c2eee47e7b/bot.user.js#L1117-L1119